{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 55,
   "metadata": {},
   "outputs": [],
   "source": [
    "import os\n",
    "import numpy as np\n",
    "os.environ[\"CUDA_DEVICE_ORDER\"]=\"PCI_BUS_ID\" \n",
    "os.environ[\"CUDA_VISIBLE_DEVICES\"] = \"3\" "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "metadata": {},
   "outputs": [],
   "source": [
    "with open(\"../datasets/AAPD/llm_cluster_result/zero_shot_text_test1.json\",\"r\") as json_file:\n",
    "    json_list = list(json_file)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "metadata": {},
   "outputs": [],
   "source": [
    "predict_output = []\n",
    "for i in range(len(json_list)):\n",
    "    predict_output.append(json_list[i].split('\"labels\": [')[1].split(',')[0][1:-1])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "metadata": {},
   "outputs": [],
   "source": [
    "file1 = open('../datasets/AAPD/true_labels.txt', 'r')\n",
    "summary = file1.readlines()  "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "metadata": {},
   "outputs": [],
   "source": [
    "label_dic = {}\n",
    "for row in summary:\n",
    "    label_dic[row.split('; ')[0]] = row.split('; ')[1]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[['Computer Vision and Pattern Recognition', 'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence', 'Data Structures and Algorithms'],\n",
       " ['Combinatorics', 'Discrete Mathematics', 'Probability'],\n",
       " ['Information Theory',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Information Theory',\n",
       "  'Probability'],\n",
       " ['Computer Vision and Pattern Recognition',\n",
       "  'Information Theory',\n",
       "  'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computer Science and Game Theory', 'Networking and Internet Architecture'],\n",
       " ['Computers and Society', 'Logic in Computer Science'],\n",
       " ['Machine Learning', 'Social and Information Networks', 'Machine Learning'],\n",
       " ['Combinatorics', 'Discrete Mathematics'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Data Structures and Algorithms', 'Computational Geometry'],\n",
       " ['Computation and Language;\\n', 'Computation and Language'],\n",
       " ['Information Theory',\n",
       "  'Artificial Intelligence',\n",
       "  'Machine Learning',\n",
       "  'Information Theory'],\n",
       " ['Multiagent Systems',\n",
       "  'Artificial Intelligence',\n",
       "  'Logic in Computer Science'],\n",
       " ['Physics and Society;\\n',\n",
       "  'Computational Engineering, Finance, and Science',\n",
       "  'Computers and Society',\n",
       "  'Social and Information Networks'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Networking and Internet Architecture',\n",
       "  'Information Theory',\n",
       "  'Information Theory'],\n",
       " ['Formal Languages and Automata Theory', 'Computational Complexity'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computational Complexity', 'Combinatorics'],\n",
       " ['Computational Engineering, Finance, and Science',\n",
       "  'Statistics Theory',\n",
       "  'Statistics Theory'],\n",
       " ['Combinatorics',\n",
       "  'Information Theory',\n",
       "  'Information Theory',\n",
       "  'Quantum Physics\\n'],\n",
       " ['Physics and Society;\\n',\n",
       "  'Statistical Mechanics;\\n',\n",
       "  'Social and Information Networks'],\n",
       " ['Computational Geometry', 'Data Structures and Algorithms'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Networking and Internet Architecture',\n",
       "  'Information Theory',\n",
       "  'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Physics and Society;\\n', 'Social and Information Networks'],\n",
       " ['Data Structures and Algorithms',\n",
       "  'Information Theory',\n",
       "  'Information Theory'],\n",
       " ['Computation and Language',\n",
       "  'Information Retrieval',\n",
       "  'Machine Learning',\n",
       "  'Machine Learning'],\n",
       " ['Discrete Mathematics',\n",
       "  'Computer Science and Game Theory',\n",
       "  'Robotics',\n",
       "  'Combinatorics',\n",
       "  'Probability'],\n",
       " ['Networking and Internet Architecture',\n",
       "  'Data Structures and Algorithms',\n",
       "  'Computer Science and Game Theory'],\n",
       " ['Databases', 'Distributed, Parallel, and Cluster Computing'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Quantum Physics\\n', 'Cryptography and Security'],\n",
       " ['Logic', 'Artificial Intelligence'],\n",
       " ['Computational Engineering, Finance, and Science', 'Machine Learning'],\n",
       " ['Computers and Society', 'Multiagent Systems'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Data Structures and Algorithms',\n",
       "  'Disordered Systems and Neural Networks;\\n',\n",
       "  'Physics and Society;\\n'],\n",
       " ['Data Structures and Algorithms', 'Computational Complexity'],\n",
       " ['Optimization and Control', 'Machine Learning', 'Machine Learning'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computer Vision and Pattern Recognition', 'Computation and Language'],\n",
       " ['Social and Information Networks', 'Physics and Society;\\n'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Quantum Physics\\n', 'Cryptography and Security'],\n",
       " ['Combinatorics', 'Discrete Mathematics'],\n",
       " ['Databases', 'Cryptography and Security'],\n",
       " ['Information Retrieval', 'Computation and Language'],\n",
       " ['Cryptography and Security', 'Social and Information Networks'],\n",
       " ['Computer Vision and Pattern Recognition',\n",
       "  'Machine Learning',\n",
       "  'Neural and Evolutionary Computing'],\n",
       " ['Software Engineering', 'Logic in Computer Science', 'Robotics'],\n",
       " ['Software Engineering', 'Formal Languages and Automata Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Databases', 'Artificial Intelligence', 'Computation and Language'],\n",
       " ['Computer Science and Game Theory', 'Logic in Computer Science', 'Logic'],\n",
       " ['Computational Complexity',\n",
       "  'Cryptography and Security',\n",
       "  'Data Structures and Algorithms'],\n",
       " ['Neural and Evolutionary Computing', 'Neurons and Cognition'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Robotics', 'Systems and Control'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Data Structures and Algorithms', 'Discrete Mathematics'],\n",
       " ['Computational Engineering, Finance, and Science', 'Numerical Analysis'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Human-Computer Interaction', 'Computers and Society'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Statistical Mechanics;\\n',\n",
       "  'Disordered Systems and Neural Networks;\\n',\n",
       "  'Information Theory',\n",
       "  'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computational Complexity', 'Logic in Computer Science', 'Combinatorics'],\n",
       " ['Information Theory', 'Computation and Language', 'Information Theory'],\n",
       " ['Artificial Intelligence',\n",
       "  'Information Theory',\n",
       "  'Information Theory',\n",
       "  'Statistics Theory',\n",
       "  'Statistics Theory'],\n",
       " ['Social and Information Networks', 'Physics and Society;\\n'],\n",
       " ['Information Theory',\n",
       "  'Systems and Control',\n",
       "  'Information Theory',\n",
       "  'Optimization and Control'],\n",
       " ['Networking and Internet Architecture', 'Performance'],\n",
       " ['Systems and Control', 'Optimization and Control'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Artificial Intelligence', 'Data Structures and Algorithms'],\n",
       " ['Logic', 'Logic in Computer Science', 'Combinatorics'],\n",
       " ['Quantitative Methods', 'Data Structures and Algorithms'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Cryptography and Security', 'Software Engineering'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Discrete Mathematics', 'Combinatorics'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence', 'Logic in Computer Science'],\n",
       " ['Social and Information Networks', 'Computers and Society'],\n",
       " ['Social and Information Networks', 'Physics and Society;\\n'],\n",
       " ['Numerical Analysis', 'Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence', 'Computation and Language'],\n",
       " ['Artificial Intelligence', 'Machine Learning', 'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Robotics', 'Artificial Intelligence'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Cryptography and Security', 'Human-Computer Interaction'],\n",
       " ['Computation and Language', 'Social and Information Networks'],\n",
       " ['Machine Learning',\n",
       "  'Computer Vision and Pattern Recognition',\n",
       "  'Machine Learning'],\n",
       " ['Optimization and Control', 'Systems and Control'],\n",
       " ['Computer Vision and Pattern Recognition',\n",
       "  'Artificial Intelligence',\n",
       "  'Adaptation and Self-Organizing Systems',\n",
       "  'Machine Learning'],\n",
       " ['Physics and Society;\\n', 'Digital Libraries'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computation and Language;\\n', 'Computation and Language'],\n",
       " ['Machine Learning', 'Optimization and Control'],\n",
       " ['Information Retrieval', 'Multimedia'],\n",
       " ['Combinatorics', 'Data Structures and Algorithms'],\n",
       " ['Computers and Society', 'Programming Languages'],\n",
       " ['Information Theory', 'Discrete Mathematics', 'Information Theory'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Formal Languages and Automata Theory', 'Discrete Mathematics'],\n",
       " ['Computer Vision and Pattern Recognition', 'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Programming Languages', 'Artificial Intelligence', 'Symbolic Computation'],\n",
       " ['Combinatorics', 'Discrete Mathematics'],\n",
       " ['Data Structures and Algorithms', 'Discrete Mathematics'],\n",
       " ['Multimedia', 'Cryptography and Security'],\n",
       " ['Social and Information Networks', 'Physics and Society;\\n'],\n",
       " ['Information Theory',\n",
       "  'Computational Complexity',\n",
       "  'Information Theory',\n",
       "  'Probability'],\n",
       " ['Computational Complexity',\n",
       "  'Computational Geometry',\n",
       "  'Discrete Mathematics'],\n",
       " ['Machine Learning', 'Computer Vision and Pattern Recognition'],\n",
       " ['Computer Vision and Pattern Recognition', 'Robotics'],\n",
       " ['Programming Languages', 'Logic in Computer Science'],\n",
       " ['Optimization and Control',\n",
       "  'Information Theory',\n",
       "  'Information Theory',\n",
       "  'Probability'],\n",
       " ['Human-Computer Interaction', 'Multimedia'],\n",
       " ['Symbolic Computation', 'Logic in Computer Science', 'Systems and Control'],\n",
       " ['Cryptography and Security', 'Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Systems and Control', 'Optimization and Control'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Distributed, Parallel, and Cluster Computing', 'Programming Languages'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Distributed, Parallel, and Cluster Computing',\n",
       "  'Networking and Internet Architecture'],\n",
       " ['Computational Complexity', 'Information Theory', 'Information Theory'],\n",
       " ['Systems and Control', 'Statistical Mechanics;\\n'],\n",
       " ['Networking and Internet Architecture',\n",
       "  'Cryptography and Security',\n",
       "  'Information Theory',\n",
       "  'Information Theory'],\n",
       " ['Machine Learning',\n",
       "  'Artificial Intelligence',\n",
       "  'Information Theory',\n",
       "  'Information Theory',\n",
       "  'Statistics Theory',\n",
       "  'Statistics Theory'],\n",
       " ['Computer Science and Game Theory', 'Social and Information Networks'],\n",
       " ['Computer Science and Game Theory',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Physics and Society;\\n'],\n",
       " ['Computer Vision and Pattern Recognition', 'Machine Learning'],\n",
       " ['Mathematical Software',\n",
       "  'Computational Engineering, Finance, and Science',\n",
       "  'Performance'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Cryptography and Security', 'Information Theory', 'Information Theory'],\n",
       " ['Computational Complexity', 'Formal Languages and Automata Theory'],\n",
       " ['Computers and Society', 'Cryptography and Security'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computational Geometry', 'Data Structures and Algorithms', 'Robotics'],\n",
       " ['Social and Information Networks', 'Physics and Society;\\n'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Machine Learning',\n",
       "  'Computer Vision and Pattern Recognition',\n",
       "  'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computers and Society', 'Computer Vision and Pattern Recognition'],\n",
       " ['Computational Geometry', 'Data Structures and Algorithms'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Digital Libraries', 'Information Retrieval'],\n",
       " ['Data Structures and Algorithms',\n",
       "  'Information Theory',\n",
       "  'Information Theory'],\n",
       " ['Cryptography and Security', 'Neural and Evolutionary Computing'],\n",
       " ['Machine Learning',\n",
       "  'Artificial Intelligence',\n",
       "  'Statistics Theory',\n",
       "  'Machine Learning',\n",
       "  'Statistics Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Numerical Analysis', 'Numerical Analysis'],\n",
       " ['Quantum Physics\\n', 'Logic in Computer Science'],\n",
       " ['Information Theory',\n",
       "  'Information Theory',\n",
       "  'Numerical Analysis',\n",
       "  'Machine Learning'],\n",
       " ['Computer Vision and Pattern Recognition',\n",
       "  'Information Theory',\n",
       "  'Combinatorics',\n",
       "  'Information Theory',\n",
       "  'Optimization and Control'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computer Science and Game Theory', 'Networking and Internet Architecture'],\n",
       " ['Distributed, Parallel, and Cluster Computing', 'Discrete Mathematics'],\n",
       " ['Numerical Analysis', 'Machine Learning', 'Machine Learning'],\n",
       " ['Systems and Control', 'Optimization and Control'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Physics and Society;\\n', 'Digital Libraries'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Statistics Theory',\n",
       "  'Artificial Intelligence',\n",
       "  'Machine Learning',\n",
       "  'Machine Learning',\n",
       "  'Statistics Theory'],\n",
       " ['Physics and Society;\\n', 'Social and Information Networks'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computer Science and Game Theory',\n",
       "  'Logic in Computer Science',\n",
       "  'Multiagent Systems'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Combinatorics', 'Discrete Mathematics'],\n",
       " ['Networking and Internet Architecture',\n",
       "  'Information Theory',\n",
       "  'Information Theory'],\n",
       " ['Optimization and Control', 'Systems and Control'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Probability', 'Discrete Mathematics'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Machine Learning', 'Applications'],\n",
       " ['Optimization and Control',\n",
       "  'Machine Learning',\n",
       "  'Numerical Analysis',\n",
       "  'Numerical Analysis',\n",
       "  'Machine Learning'],\n",
       " ['Information Theory',\n",
       "  'Information Theory',\n",
       "  'Statistics Theory',\n",
       "  'Statistics Theory'],\n",
       " ['Combinatorics', 'Computational Complexity', 'Probability'],\n",
       " ['Systems and Control', 'Optimization and Control'],\n",
       " ['Quantum Physics\\n', 'Cryptography and Security'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Social and Information Networks',\n",
       "  'Computers and Society',\n",
       "  'Applications',\n",
       "  'Machine Learning'],\n",
       " ['Computational Complexity', 'Data Structures and Algorithms'],\n",
       " ['Computational Engineering, Finance, and Science', 'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Networking and Internet Architecture', 'Multiagent Systems'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Combinatorics', 'Discrete Mathematics'],\n",
       " ['Networking and Internet Architecture', 'Discrete Mathematics'],\n",
       " ['Networking and Internet Architecture', 'Physics and Society;\\n'],\n",
       " ['Social and Information Networks', 'Physics and Society;\\n'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory', 'Probability'],\n",
       " ['Discrete Mathematics', 'Combinatorics'],\n",
       " ['Machine Learning',\n",
       "  'Machine Learning',\n",
       "  'Statistics Theory',\n",
       "  'Statistics Theory'],\n",
       " ['Machine Learning', 'Machine Learning', 'Optimization and Control'],\n",
       " ['Information Retrieval', 'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory', 'Numerical Analysis'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Programming Languages', 'Logic in Computer Science'],\n",
       " ['Combinatorics', 'Discrete Mathematics'],\n",
       " ['Computation and Language;\\n', 'Computation and Language'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Information Theory'],\n",
       " ['Combinatorics', 'Discrete Mathematics'],\n",
       " ['Databases', 'Data Structures and Algorithms', 'Information Retrieval'],\n",
       " ['Cryptography and Security', 'Networking and Internet Architecture'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Optimization and Control', 'Computer Vision and Pattern Recognition'],\n",
       " ['Physics and Society;\\n', 'Social and Information Networks'],\n",
       " ['Information Theory', 'Information Theory', 'Quantum Physics\\n'],\n",
       " ['Physics and Society;\\n', 'Social and Information Networks'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Machine Learning', 'Artificial Intelligence', 'Machine Learning'],\n",
       " ['Computation and Language;\\n', 'Computation and Language'],\n",
       " ['Information Theory',\n",
       "  'Machine Learning',\n",
       "  'Information Theory',\n",
       "  'Machine Learning'],\n",
       " ['Computation and Language', 'Machine Learning'],\n",
       " ['Cryptography and Security', 'Networking and Internet Architecture'],\n",
       " ['Computer Vision and Pattern Recognition',\n",
       "  'Machine Learning',\n",
       "  'Neural and Evolutionary Computing'],\n",
       " ['Computational Engineering, Finance, and Science',\n",
       "  'Data Structures and Algorithms'],\n",
       " ['Social and Information Networks', 'Physics and Society;\\n'],\n",
       " ['Numerical Analysis',\n",
       "  'Computer Vision and Pattern Recognition',\n",
       "  'Machine Learning',\n",
       "  'Optimization and Control'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computational Complexity', 'Logic in Computer Science'],\n",
       " ['Discrete Mathematics', 'Data Structures and Algorithms', 'Combinatorics'],\n",
       " ['Information Theory',\n",
       "  'Disordered Systems and Neural Networks;\\n',\n",
       "  'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Robotics', 'Artificial Intelligence', 'Machine Learning'],\n",
       " ['Logic in Computer Science', 'Programming Languages'],\n",
       " ['Physics and Society;\\n', 'Social and Information Networks'],\n",
       " ['Social and Information Networks', 'Physics and Society;\\n', 'Applications'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Computers and Society', 'Cryptography and Security'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Machine Learning',\n",
       "  'Distributed, Parallel, and Cluster Computing',\n",
       "  'Data Structures and Algorithms',\n",
       "  'Machine Learning',\n",
       "  'Optimization and Control'],\n",
       " ['Methodology', 'Artificial Intelligence', 'Machine Learning'],\n",
       " ['Programming Languages', 'Logic in Computer Science'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Probability', 'Networking and Internet Architecture'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Applications', 'Social and Information Networks'],\n",
       " ['Data Structures and Algorithms', 'Optimization and Control'],\n",
       " ['Numerical Analysis',\n",
       "  'Information Theory',\n",
       "  'Information Theory',\n",
       "  'Numerical Analysis'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computers and Society', 'Human-Computer Interaction'],\n",
       " ['Quantum Physics\\n', 'Artificial Intelligence', 'Machine Learning'],\n",
       " ['Optimization and Control',\n",
       "  'Machine Learning',\n",
       "  'Systems and Control',\n",
       "  'Machine Learning'],\n",
       " ['Neural and Evolutionary Computing',\n",
       "  'Artificial Intelligence',\n",
       "  'Quantitative Methods'],\n",
       " ['Information Theory',\n",
       "  'Distributed, Parallel, and Cluster Computing',\n",
       "  'Data Structures and Algorithms',\n",
       "  'Information Theory'],\n",
       " ['Information Retrieval', 'Artificial Intelligence'],\n",
       " ['Discrete Mathematics', 'Combinatorics'],\n",
       " ['Distributed, Parallel, and Cluster Computing', 'Performance'],\n",
       " ['Logic in Computer Science', 'Symbolic Computation'],\n",
       " ['Databases', 'Cryptography and Security'],\n",
       " ['Artificial Intelligence',\n",
       "  'Discrete Mathematics',\n",
       "  'Computer Science and Game Theory',\n",
       "  'Symbolic Computation'],\n",
       " ['Combinatorics', 'Discrete Mathematics'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Discrete Mathematics', 'Optimization and Control'],\n",
       " ['Discrete Mathematics', 'Combinatorics'],\n",
       " ['Social and Information Networks', 'Physics and Society;\\n'],\n",
       " ['Systems and Control', 'Machine Learning'],\n",
       " ['Artificial Intelligence', 'Robotics'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Distributed, Parallel, and Cluster Computing',\n",
       "  'Data Structures and Algorithms'],\n",
       " ['Computer Vision and Pattern Recognition', 'Machine Learning'],\n",
       " ['Statistics Theory',\n",
       "  'Machine Learning',\n",
       "  'Machine Learning',\n",
       "  'Statistics Theory'],\n",
       " ['Computers and Society', 'Neurons and Cognition'],\n",
       " ['Software Engineering', 'Performance'],\n",
       " ['Data Structures and Algorithms', 'Logic in Computer Science'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Quantum Physics\\n', 'Cryptography and Security'],\n",
       " ['Networking and Internet Architecture',\n",
       "  'Information Theory',\n",
       "  'Information Theory'],\n",
       " ['Artificial Intelligence', 'Computer Science and Game Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computation and Language', 'Machine Learning'],\n",
       " ['Artificial Intelligence', 'Computational Complexity'],\n",
       " ['Logic in Computer Science', 'Formal Languages and Automata Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Networking and Internet Architecture', 'Computers and Society'],\n",
       " ['Digital Libraries', 'Physics and Society;\\n'],\n",
       " ['Databases', 'Computers and Society'],\n",
       " ['Machine Learning', 'Information Retrieval'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Information Theory'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Logic in Computer Science', 'Computational Complexity'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory',\n",
       "  'Information Theory',\n",
       "  'Statistics Theory',\n",
       "  'Machine Learning',\n",
       "  'Statistics Theory'],\n",
       " ['Machine Learning', 'Numerical Analysis'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Numerical Analysis', 'Numerical Analysis'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Numerical Analysis',\n",
       "  'Disordered Systems and Neural Networks;\\n',\n",
       "  'Discrete Mathematics',\n",
       "  'Data Structures and Algorithms'],\n",
       " ['Human-Computer Interaction', 'Multimedia'],\n",
       " ['Data Structures and Algorithms', 'Discrete Mathematics'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Physics and Society;\\n', 'Social and Information Networks'],\n",
       " ['Cryptography and Security', 'Information Theory', 'Information Theory'],\n",
       " ['Computer Vision and Pattern Recognition', 'Applications'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computation and Language;\\n', 'Computation and Language'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computational Geometry', 'Discrete Mathematics'],\n",
       " ['Cryptography and Security', 'Computers and Society'],\n",
       " ['Information Theory',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Formal Languages and Automata Theory', 'Logic in Computer Science'],\n",
       " ['Computational Complexity', 'Data Structures and Algorithms', 'Robotics'],\n",
       " ['Machine Learning',\n",
       "  'Information Theory',\n",
       "  'Machine Learning',\n",
       "  'Information Theory'],\n",
       " ['Programming Languages', 'Logic in Computer Science'],\n",
       " ['Number Theory', 'Cryptography and Security'],\n",
       " ['Cryptography and Security', 'Databases'],\n",
       " ['Logic in Computer Science', 'Computational Complexity'],\n",
       " ['Physics and Society;\\n',\n",
       "  'Statistical Mechanics;\\n',\n",
       "  'Social and Information Networks'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computer Science and Game Theory', 'Computational Complexity'],\n",
       " ['Optimization and Control', 'Systems and Control'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Programming Languages', 'Computational Engineering, Finance, and Science'],\n",
       " ['Information Theory',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Information Theory'],\n",
       " ['Neural and Evolutionary Computing',\n",
       "  'Distributed, Parallel, and Cluster Computing',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Performance',\n",
       "  'Systems and Control'],\n",
       " ['Machine Learning', 'Applications', 'Machine Learning'],\n",
       " ['Physics and Society;\\n',\n",
       "  'Social and Information Networks',\n",
       "  'Adaptation and Self-Organizing Systems'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Discrete Mathematics', 'Computer Science and Game Theory'],\n",
       " ['Symbolic Computation', 'Logic in Computer Science'],\n",
       " ['Programming Languages', 'Artificial Intelligence'],\n",
       " ['Information Theory',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Information Theory'],\n",
       " ['Quantum Physics\\n', 'Information Theory', 'Information Theory'],\n",
       " ['Logic', 'Computer Science and Game Theory', 'Logic in Computer Science'],\n",
       " ['Computation and Language',\n",
       "  'Artificial Intelligence',\n",
       "  'Logic in Computer Science'],\n",
       " ['Combinatorics', 'Discrete Mathematics'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence',\n",
       "  'Systems and Control',\n",
       "  'Optimization and Control'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Retrieval', 'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computation and Language', 'Neural and Evolutionary Computing'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computational Geometry', 'Numerical Analysis'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Machine Learning', 'Computation and Language'],\n",
       " ['Machine Learning',\n",
       "  'Computation and Language',\n",
       "  'Neural and Evolutionary Computing',\n",
       "  'Machine Learning'],\n",
       " ['Physics and Society;\\n',\n",
       "  'Statistical Mechanics;\\n',\n",
       "  'Social and Information Networks'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Digital Libraries', 'Social and Information Networks'],\n",
       " ['Computational Engineering, Finance, and Science', 'Mathematical Software'],\n",
       " ['Systems and Control',\n",
       "  'Data Structures and Algorithms',\n",
       "  'Numerical Analysis',\n",
       "  'Optimization and Control'],\n",
       " ['Artificial Intelligence', 'Neural and Evolutionary Computing'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computer Vision and Pattern Recognition',\n",
       "  'Computation and Language',\n",
       "  'Information Retrieval'],\n",
       " ['Data Structures and Algorithms',\n",
       "  'Information Retrieval',\n",
       "  'Social and Information Networks'],\n",
       " ['Statistics and Probability;\\n',\n",
       "  'Social and Information Networks',\n",
       "  'Physics and Society;\\n'],\n",
       " ['Human-Computer Interaction', 'Software Engineering'],\n",
       " ['Optimization and Control', 'Systems and Control'],\n",
       " ['Human-Computer Interaction', 'Computers and Society'],\n",
       " ['Artificial Intelligence', 'Multiagent Systems'],\n",
       " ['Information Theory', 'Discrete Mathematics', 'Information Theory'],\n",
       " ['Formal Languages and Automata Theory', 'Discrete Mathematics'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence',\n",
       "  'Computational Engineering, Finance, and Science',\n",
       "  'Software Engineering'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Machine Learning', 'Information Retrieval'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Distributed, Parallel, and Cluster Computing',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Software Engineering'],\n",
       " ['Machine Learning', 'Artificial Intelligence'],\n",
       " ['Neural and Evolutionary Computing', 'Artificial Intelligence'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Neural and Evolutionary Computing', 'Artificial Intelligence'],\n",
       " ['Machine Learning',\n",
       "  'Machine Learning',\n",
       "  'Optimization and Control',\n",
       "  'Probability'],\n",
       " ['Combinatorics', 'Discrete Mathematics'],\n",
       " ['Physics and Society;\\n', 'Social and Information Networks'],\n",
       " ['Information Theory', 'Combinatorics', 'Information Theory'],\n",
       " ['Optimization and Control', 'Computational Complexity', 'Combinatorics'],\n",
       " ['Numerical Analysis', 'Machine Learning', 'Machine Learning'],\n",
       " ['Multimedia', 'Computer Vision and Pattern Recognition'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Social and Information Networks', 'Physics and Society;\\n'],\n",
       " ['Data Structures and Algorithms', 'Combinatorics'],\n",
       " ['Neural and Evolutionary Computing', 'Quantum Physics\\n'],\n",
       " ['Digital Libraries', 'Social and Information Networks'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Programming Languages', 'Logic in Computer Science'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence',\n",
       "  'Databases',\n",
       "  'Neural and Evolutionary Computing',\n",
       "  'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Discrete Mathematics', 'Combinatorics'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Probability', 'Discrete Mathematics'],\n",
       " ['Information Theory',\n",
       "  'Information Theory',\n",
       "  'Numerical Analysis',\n",
       "  'Probability'],\n",
       " ['Information Theory', 'Information Theory', 'Methodology'],\n",
       " ['Machine Learning', 'Computer Vision and Pattern Recognition'],\n",
       " ['Machine Learning', 'Computer Science and Game Theory'],\n",
       " ['Logic in Computer Science',\n",
       "  'Programming Languages',\n",
       "  'Software Engineering'],\n",
       " ['Social and Information Networks', 'Multimedia', 'Physics and Society;\\n'],\n",
       " ['Networking and Internet Architecture',\n",
       "  'Information Theory',\n",
       "  'Information Theory'],\n",
       " ['Statistics Theory', 'Computational Geometry', 'Statistics Theory'],\n",
       " ['Social and Information Networks', 'Physics and Society;\\n'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Cryptography and Security', 'Combinatorics'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Information Theory'],\n",
       " ['Machine Learning',\n",
       "  'Computers and Society',\n",
       "  'Physics and Society;\\n',\n",
       "  'Applications'],\n",
       " ['Quantum Physics\\n', 'Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Symbolic Computation', 'Artificial Intelligence'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Physics and Society;\\n', 'Social and Information Networks'],\n",
       " ['Information Theory',\n",
       "  'Distributed, Parallel, and Cluster Computing',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Information Theory',\n",
       "  'Statistics Theory',\n",
       "  'Applications',\n",
       "  'Statistics Theory'],\n",
       " ['Artificial Intelligence', 'Cryptography and Security'],\n",
       " ['Information Retrieval',\n",
       "  'Statistical Mechanics;\\n',\n",
       "  'Social and Information Networks'],\n",
       " ['Neurons and Cognition',\n",
       "  'Artificial Intelligence',\n",
       "  'Neural and Evolutionary Computing'],\n",
       " ['Computation and Language;\\n', 'Computation and Language'],\n",
       " ['Artificial Intelligence', 'Machine Learning', 'Machine Learning'],\n",
       " ['Quantum Physics\\n', 'Information Theory', 'Information Theory'],\n",
       " ['Digital Libraries', 'Human-Computer Interaction'],\n",
       " ['Software Engineering',\n",
       "  'Logic in Computer Science',\n",
       "  'Programming Languages'],\n",
       " ['Data Structures and Algorithms', 'Computational Geometry'],\n",
       " ['Computational Geometry', 'Databases', 'Data Structures and Algorithms'],\n",
       " ['Systems and Control',\n",
       "  'Information Theory',\n",
       "  'Information Theory',\n",
       "  'Statistics Theory',\n",
       "  'Statistics Theory'],\n",
       " ['Computer Vision and Pattern Recognition', 'Machine Learning'],\n",
       " ['Neurons and Cognition', 'Human-Computer Interaction'],\n",
       " ['Systems and Control', 'Robotics', 'Optimization and Control'],\n",
       " ['Distributed, Parallel, and Cluster Computing', 'Performance'],\n",
       " ['Social and Information Networks',\n",
       "  'Machine Learning',\n",
       "  'Physics and Society;\\n',\n",
       "  'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Distributed, Parallel, and Cluster Computing',\n",
       "  'Computational Complexity',\n",
       "  'Data Structures and Algorithms'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Machine Learning', 'Distributed, Parallel, and Cluster Computing'],\n",
       " ['Computer Vision and Pattern Recognition', 'Computational Geometry'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Networking and Internet Architecture', 'Statistical Mechanics;\\n'],\n",
       " ['Statistics and Probability;\\n', 'Information Retrieval'],\n",
       " ['Systems and Control', 'Optimization and Control'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Discrete Mathematics', 'Data Structures and Algorithms', 'Combinatorics'],\n",
       " ['Computational Complexity', 'Information Theory', 'Information Theory'],\n",
       " ['Information Theory',\n",
       "  'Discrete Mathematics',\n",
       "  'Combinatorics',\n",
       "  'Information Theory'],\n",
       " ['Machine Learning', 'Computer Vision and Pattern Recognition'],\n",
       " ['Logic in Computer Science', 'Artificial Intelligence'],\n",
       " ['Mathematical Software', 'Computational Engineering, Finance, and Science'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory',\n",
       "  'Distributed, Parallel, and Cluster Computing',\n",
       "  'Information Theory'],\n",
       " ['Social and Information Networks', 'Physics and Society;\\n'],\n",
       " ['Artificial Intelligence', 'Data Structures and Algorithms'],\n",
       " ['Computation and Language',\n",
       "  'Statistics and Probability;\\n',\n",
       "  'Physics and Society;\\n'],\n",
       " ['Information Theory',\n",
       "  'Data Structures and Algorithms',\n",
       "  'Information Theory'],\n",
       " ['Information Theory', 'Information Theory', 'Quantum Physics\\n'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Applications', 'Robotics'],\n",
       " ['Software Engineering',\n",
       "  'Social and Information Networks',\n",
       "  'Adaptation and Self-Organizing Systems',\n",
       "  'Physics and Society;\\n'],\n",
       " ['Social and Information Networks',\n",
       "  'Cryptography and Security',\n",
       "  'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computers and Society', 'Cryptography and Security'],\n",
       " ['Artificial Intelligence', 'Computation and Language', 'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Neural and Evolutionary Computing',\n",
       "  'Computation and Language',\n",
       "  'Machine Learning'],\n",
       " ['Machine Learning', 'Artificial Intelligence', 'Machine Learning'],\n",
       " ['Computer Science and Game Theory',\n",
       "  'Statistical Mechanics;\\n',\n",
       "  'Multiagent Systems'],\n",
       " ['Artificial Intelligence',\n",
       "  'Information Theory',\n",
       "  'Information Theory',\n",
       "  'Adaptation and Self-Organizing Systems'],\n",
       " ['Information Theory', 'Machine Learning', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Retrieval',\n",
       "  'Machine Learning',\n",
       "  'Social and Information Networks'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Numerical Analysis', 'Numerical Analysis'],\n",
       " ['Cryptography and Security', 'Artificial Intelligence'],\n",
       " ['Computation and Language;\\n', 'Computation and Language'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory', 'Optimization and Control'],\n",
       " ['Computer Vision and Pattern Recognition', 'Data Structures and Algorithms'],\n",
       " ['Artificial Intelligence', 'Machine Learning'],\n",
       " ['Combinatorics', 'Discrete Mathematics'],\n",
       " ['Computer Vision and Pattern Recognition', 'Artificial Intelligence'],\n",
       " ['Physics and Society;\\n',\n",
       "  'Social and Information Networks',\n",
       "  'Statistics and Probability;\\n'],\n",
       " ['Computation and Language', 'Artificial Intelligence'],\n",
       " ['Systems and Control', 'Logic in Computer Science', 'Performance'],\n",
       " ['Cryptography and Security', 'Logic in Computer Science'],\n",
       " ['Combinatorics', 'Information Theory', 'Information Theory'],\n",
       " ['Computers and Society', 'Artificial Intelligence'],\n",
       " ['Databases', 'Information Retrieval'],\n",
       " ['Optimization and Control', 'Systems and Control'],\n",
       " ['Cryptography and Security', 'Networking and Internet Architecture'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Cryptography and Security', 'Information Theory', 'Information Theory'],\n",
       " ['Cryptography and Security', 'Number Theory'],\n",
       " ['Information Theory',\n",
       "  'Machine Learning',\n",
       "  'Information Theory',\n",
       "  'Machine Learning'],\n",
       " ['Social and Information Networks', 'Physics and Society;\\n'],\n",
       " ['Data Structures and Algorithms',\n",
       "  'Discrete Mathematics',\n",
       "  'Networking and Internet Architecture'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Physics and Society;\\n',\n",
       "  'Social and Information Networks',\n",
       "  'Statistics and Probability;\\n'],\n",
       " ['Combinatorics', 'Discrete Mathematics'],\n",
       " ['Information Theory', 'Information Theory', 'Quantum Physics\\n'],\n",
       " ['Distributed, Parallel, and Cluster Computing', 'Performance'],\n",
       " ['Combinatorics', 'Discrete Mathematics'],\n",
       " ['Cryptography and Security', 'Computers and Society'],\n",
       " ['Computer Vision and Pattern Recognition', 'Information Retrieval'],\n",
       " ['Physics and Society;\\n', 'Social and Information Networks'],\n",
       " ['Multiagent Systems', 'Artificial Intelligence'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Networking and Internet Architecture',\n",
       "  'Distributed, Parallel, and Cluster Computing'],\n",
       " ['Computational Complexity', 'Neural and Evolutionary Computing'],\n",
       " ['Information Retrieval',\n",
       "  'Databases',\n",
       "  'Distributed, Parallel, and Cluster Computing'],\n",
       " ['Logic in Computer Science', 'Formal Languages and Automata Theory'],\n",
       " ['Machine Learning', 'Artificial Intelligence'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence', 'Distributed, Parallel, and Cluster Computing'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computational Geometry', 'Discrete Mathematics', 'Combinatorics'],\n",
       " ['Machine Learning', 'Computational Geometry', 'Machine Learning'],\n",
       " ['Computer Science and Game Theory',\n",
       "  'Computational Complexity',\n",
       "  'Multiagent Systems'],\n",
       " ['Combinatorics', 'Computational Geometry'],\n",
       " ['Databases', 'Artificial Intelligence'],\n",
       " ['Machine Learning', 'Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Programming Languages',\n",
       "  'Logic in Computer Science',\n",
       "  'Software Engineering'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Adaptation and Self-Organizing Systems',\n",
       "  'Computers and Society',\n",
       "  'Physics and Society;\\n'],\n",
       " ['Artificial Intelligence', 'Information Retrieval'],\n",
       " ['Formal Languages and Automata Theory', 'Computational Complexity'],\n",
       " ['Information Retrieval', 'Machine Learning', 'Machine Learning'],\n",
       " ['Combinatorics', 'Discrete Mathematics', 'Probability'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Social and Information Networks', 'Computers and Society'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Cryptography and Security',\n",
       "  'Neural and Evolutionary Computing',\n",
       "  'Networking and Internet Architecture'],\n",
       " ['Machine Learning',\n",
       "  'Information Theory',\n",
       "  'Machine Learning',\n",
       "  'Information Theory'],\n",
       " ['Computational Geometry',\n",
       "  'Distributed, Parallel, and Cluster Computing',\n",
       "  'Discrete Mathematics',\n",
       "  'Data Structures and Algorithms'],\n",
       " ['Physics and Society;\\n',\n",
       "  'Computers and Society',\n",
       "  'Social and Information Networks',\n",
       "  'Adaptation and Self-Organizing Systems'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence', 'Computation and Language'],\n",
       " ['Computational Geometry', 'Discrete Mathematics'],\n",
       " ['Computer Science and Game Theory', 'Systems and Control'],\n",
       " ['Statistics Theory',\n",
       "  'Information Theory',\n",
       "  'Information Theory',\n",
       "  'Machine Learning',\n",
       "  'Statistics Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence', 'Logic in Computer Science'],\n",
       " ['Computer Vision and Pattern Recognition',\n",
       "  'Robotics',\n",
       "  'Systems and Control'],\n",
       " ['Information Theory', 'Cryptography and Security', 'Information Theory'],\n",
       " ['Information Theory',\n",
       "  'Statistical Mechanics;\\n',\n",
       "  'Information Theory',\n",
       "  'Quantum Physics\\n'],\n",
       " ['Numerical Analysis', 'Numerical Analysis'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computer Science and Game Theory', 'Data Structures and Algorithms'],\n",
       " ['Optimization and Control', 'Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Information Theory',\n",
       "  'Computation and Language',\n",
       "  'Social and Information Networks',\n",
       "  'Information Theory',\n",
       "  'Statistics and Probability;\\n'],\n",
       " ['Databases', 'Artificial Intelligence'],\n",
       " ['Information Theory', 'Combinatorics', 'Information Theory'],\n",
       " ['Distributed, Parallel, and Cluster Computing', 'Databases'],\n",
       " ['Systems and Control', 'Formal Languages and Automata Theory'],\n",
       " ['Quantum Physics\\n', 'Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Discrete Mathematics', 'Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computation and Language',\n",
       "  'Information Retrieval',\n",
       "  'Machine Learning',\n",
       "  'Neural and Evolutionary Computing',\n",
       "  'Machine Learning'],\n",
       " ['Formal Languages and Automata Theory', 'Logic in Computer Science'],\n",
       " ['Computer Science and Game Theory', 'Multiagent Systems'],\n",
       " ['Symbolic Computation', 'Mathematical Software'],\n",
       " ['Data Structures and Algorithms',\n",
       "  'Distributed, Parallel, and Cluster Computing',\n",
       "  'Machine Learning'],\n",
       " ['Probability', 'Performance'],\n",
       " ['Information Retrieval', 'Social and Information Networks'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Information Theory',\n",
       "  'Machine Learning',\n",
       "  'Information Theory',\n",
       "  'Machine Learning'],\n",
       " ['Computers and Society', 'Human-Computer Interaction'],\n",
       " ['Machine Learning', 'Artificial Intelligence', 'Machine Learning'],\n",
       " ['Machine Learning', 'Artificial Intelligence', 'Optimization and Control'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Discrete Mathematics', 'Computational Complexity'],\n",
       " ['Information Theory',\n",
       "  'Statistical Mechanics;\\n',\n",
       "  'Information Theory',\n",
       "  'Statistics Theory',\n",
       "  'Statistics Theory'],\n",
       " ['Distributed, Parallel, and Cluster Computing',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Performance'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Discrete Mathematics', 'Data Structures and Algorithms', 'Combinatorics'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Statistical Mechanics;\\n',\n",
       "  'Computation and Language',\n",
       "  'Physics and Society;\\n'],\n",
       " ['Statistics Theory',\n",
       "  'Machine Learning',\n",
       "  'Machine Learning',\n",
       "  'Statistics Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Numerical Analysis', 'Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Machine Learning', 'Information Theory'],\n",
       " ['Mathematical Software', 'Quantum Physics\\n'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Disordered Systems and Neural Networks;\\n',\n",
       "  'Statistical Mechanics;\\n',\n",
       "  'Information Theory',\n",
       "  'Information Theory'],\n",
       " ['Programming Languages', 'Software Engineering'],\n",
       " ['Distributed, Parallel, and Cluster Computing',\n",
       "  'Data Structures and Algorithms'],\n",
       " ['Information Theory',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Information Theory'],\n",
       " ['Programming Languages', 'Distributed, Parallel, and Cluster Computing'],\n",
       " ['Artificial Intelligence', 'Information Retrieval'],\n",
       " ['Computer Science and Game Theory', 'Data Structures and Algorithms'],\n",
       " ['Optimization and Control',\n",
       "  'Systems and Control',\n",
       "  'Statistics Theory',\n",
       "  'Statistics Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Machine Learning', 'Artificial Intelligence', 'Machine Learning'],\n",
       " ['Digital Libraries', 'Information Retrieval'],\n",
       " ['Software Engineering', 'Programming Languages'],\n",
       " ['Data Structures and Algorithms',\n",
       "  'Discrete Mathematics',\n",
       "  'Computer Science and Game Theory',\n",
       "  'Combinatorics',\n",
       "  'Probability'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Computer Science and Game Theory', 'Computational Complexity'],\n",
       " ['Machine Learning', 'Artificial Intelligence'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Distributed, Parallel, and Cluster Computing',\n",
       "  'Computational Engineering, Finance, and Science'],\n",
       " ['Human-Computer Interaction',\n",
       "  'Computers and Society',\n",
       "  'Social and Information Networks'],\n",
       " ['Logic in Computer Science', 'Formal Languages and Automata Theory'],\n",
       " ['Machine Learning', 'Computers and Society'],\n",
       " ['Machine Learning', 'Optimization and Control'],\n",
       " ['Databases', 'Data Structures and Algorithms'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Quantum Physics\\n', 'Distributed, Parallel, and Cluster Computing'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Systems and Control', 'Machine Learning'],\n",
       " ['Social and Information Networks', 'Networking and Internet Architecture'],\n",
       " ['Data Structures and Algorithms',\n",
       "  'Computational Engineering, Finance, and Science'],\n",
       " ['Logic in Computer Science', 'Artificial Intelligence'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Artificial Intelligence',\n",
       "  'Machine Learning',\n",
       "  'Systems and Control',\n",
       "  'Machine Learning'],\n",
       " ['Machine Learning', 'Artificial Intelligence', 'Computers and Society'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Optimization and Control', 'Systems and Control', 'Physics and Society;\\n'],\n",
       " ['Computational Complexity', 'Symbolic Computation'],\n",
       " ['Combinatorics', 'Formal Languages and Automata Theory'],\n",
       " ['Discrete Mathematics',\n",
       "  'Computational Complexity',\n",
       "  'Logic in Computer Science'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Cryptography and Security', 'Human-Computer Interaction'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computational Engineering, Finance, and Science', 'Computers and Society'],\n",
       " ['Formal Languages and Automata Theory', 'Combinatorics'],\n",
       " ['Optimization and Control',\n",
       "  'Artificial Intelligence',\n",
       "  'Systems and Control'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Discrete Mathematics', 'Data Structures and Algorithms', 'Combinatorics'],\n",
       " ['Social and Information Networks',\n",
       "  'Statistical Mechanics;\\n',\n",
       "  'Physics and Society;\\n'],\n",
       " ['Discrete Mathematics', 'Statistics and Probability;\\n'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence', 'Machine Learning', 'Logic'],\n",
       " ['Machine Learning',\n",
       "  'Information Theory',\n",
       "  'Machine Learning',\n",
       "  'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Databases', 'Data Structures and Algorithms'],\n",
       " ['Optimization and Control', 'Robotics'],\n",
       " ['Artificial Intelligence', 'Digital Libraries', 'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Quantum Physics\\n', 'Cryptography and Security'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Retrieval', 'Computation and Language'],\n",
       " ['Cryptography and Security', 'Multimedia'],\n",
       " ['Networking and Internet Architecture',\n",
       "  'Distributed, Parallel, and Cluster Computing',\n",
       "  'Performance'],\n",
       " ['Logic in Computer Science', 'Data Structures and Algorithms'],\n",
       " ['Computation and Language;\\n', 'Computation and Language'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Cryptography and Security', 'Distributed, Parallel, and Cluster Computing'],\n",
       " ['Data Structures and Algorithms', 'Discrete Mathematics'],\n",
       " ['Programming Languages', 'Logic in Computer Science'],\n",
       " ['Data Structures and Algorithms',\n",
       "  'Artificial Intelligence',\n",
       "  'Combinatorics',\n",
       "  'Optimization and Control'],\n",
       " ['Artificial Intelligence', 'Digital Libraries'],\n",
       " ['Artificial Intelligence', 'Symbolic Computation'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computers and Society',\n",
       "  'Social and Information Networks',\n",
       "  'Physics and Society;\\n'],\n",
       " ['Logic in Computer Science', 'Numerical Analysis', 'Systems and Control'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence', 'Programming Languages'],\n",
       " ['Optimization and Control', 'Systems and Control'],\n",
       " ['Logic in Computer Science',\n",
       "  'Distributed, Parallel, and Cluster Computing',\n",
       "  'Programming Languages'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Computer Vision and Pattern Recognition', 'Human-Computer Interaction'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Quantum Physics\\n', 'Computational Complexity', 'Number Theory'],\n",
       " ['Computer Science and Game Theory', 'Artificial Intelligence'],\n",
       " ['Artificial Intelligence', 'Databases', 'Logic in Computer Science'],\n",
       " ['Artificial Intelligence', 'Systems and Control'],\n",
       " ['Physics and Society;\\n', 'Social and Information Networks'],\n",
       " ['Computation and Language',\n",
       "  'Artificial Intelligence',\n",
       "  'Multimedia',\n",
       "  'Machine Learning'],\n",
       " ['Information Retrieval',\n",
       "  'Artificial Intelligence',\n",
       "  'Computation and Language'],\n",
       " ['Networking and Internet Architecture', 'Systems and Control'],\n",
       " ['Information Theory',\n",
       "  'Information Theory',\n",
       "  'Probability',\n",
       "  'Statistics Theory',\n",
       "  'Statistics Theory'],\n",
       " ['Logic', 'Logic in Computer Science'],\n",
       " ['Systems and Control', 'Numerical Analysis', 'Optimization and Control'],\n",
       " ['Information Theory',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Data Structures and Algorithms',\n",
       "  'Discrete Mathematics',\n",
       "  'Machine Learning'],\n",
       " ['Machine Learning',\n",
       "  'Artificial Intelligence',\n",
       "  'Databases',\n",
       "  'Machine Learning'],\n",
       " ['Data Structures and Algorithms', 'Discrete Mathematics'],\n",
       " ['Logic in Computer Science', 'Artificial Intelligence'],\n",
       " ['Computer Vision and Pattern Recognition',\n",
       "  'Systems and Control',\n",
       "  'Optimization and Control'],\n",
       " ['Artificial Intelligence', 'Computer Science and Game Theory'],\n",
       " ['Computation and Language',\n",
       "  'Neural and Evolutionary Computing',\n",
       "  'Machine Learning'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Physics and Society;\\n', 'Social and Information Networks'],\n",
       " ['Optimization and Control',\n",
       "  'Discrete Mathematics',\n",
       "  'Social and Information Networks',\n",
       "  'Systems and Control',\n",
       "  'Physics and Society;\\n'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Programming Languages', 'Software Engineering'],\n",
       " ['Information Theory',\n",
       "  'Information Retrieval',\n",
       "  'Machine Learning',\n",
       "  'Information Theory'],\n",
       " ['Data Structures and Algorithms', 'Computational Complexity'],\n",
       " ['Computers and Society',\n",
       "  'Social and Information Networks',\n",
       "  'Physics and Society;\\n'],\n",
       " ['Optimization and Control', 'Machine Learning'],\n",
       " ['Computer Vision and Pattern Recognition',\n",
       "  'Neural and Evolutionary Computing'],\n",
       " ['Robotics', 'Systems and Control'],\n",
       " ['Adaptation and Self-Organizing Systems',\n",
       "  'Artificial Intelligence',\n",
       "  'Physics and Society;\\n'],\n",
       " ['Numerical Analysis', 'Computational Engineering, Finance, and Science'],\n",
       " ['Information Theory',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Information Theory'],\n",
       " ['Cryptography and Security', 'Neural and Evolutionary Computing'],\n",
       " ['Neural and Evolutionary Computing', 'Artificial Intelligence'],\n",
       " ['Information Theory', 'Combinatorics', 'Information Theory'],\n",
       " ['Number Theory', 'Data Structures and Algorithms'],\n",
       " ['Machine Learning', 'Information Retrieval', 'Machine Learning'],\n",
       " ['Computer Vision and Pattern Recognition', 'Numerical Analysis'],\n",
       " ['Computational Complexity', 'Computer Science and Game Theory'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Logic in Computer Science', 'Programming Languages'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computers and Society', 'Human-Computer Interaction', 'Machine Learning'],\n",
       " ['Machine Learning',\n",
       "  'Statistics Theory',\n",
       "  'Machine Learning',\n",
       "  'Statistics Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computer Vision and Pattern Recognition', 'Multimedia'],\n",
       " ['Networking and Internet Architecture', 'Performance'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Systems and Control', 'Information Theory', 'Information Theory'],\n",
       " ['Logic in Computer Science', 'Combinatorics', 'Logic'],\n",
       " ['Data Structures and Algorithms', 'Machine Learning', 'Machine Learning'],\n",
       " ['Computation and Language', 'Information Retrieval', 'Machine Learning'],\n",
       " ['Logic in Computer Science', 'Data Structures and Algorithms'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Human-Computer Interaction', 'Computers and Society'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence', 'Machine Learning'],\n",
       " ['Optimization and Control', 'Computational Complexity'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Machine Learning',\n",
       "  'Computer Vision and Pattern Recognition',\n",
       "  'Machine Learning'],\n",
       " ['Logic in Computer Science', 'Programming Languages'],\n",
       " ['Quantum Physics\\n', 'Computational Complexity'],\n",
       " ['Cryptography and Security', 'Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence', 'Neural and Evolutionary Computing'],\n",
       " ['Social and Information Networks', 'Networking and Internet Architecture'],\n",
       " ['Software Engineering', 'Computers and Society'],\n",
       " ['Information Retrieval', 'Artificial Intelligence'],\n",
       " ['Information Theory',\n",
       "  'Computer Science and Game Theory',\n",
       "  'Information Theory',\n",
       "  'Optimization and Control',\n",
       "  'Adaptation and Self-Organizing Systems'],\n",
       " ['Machine Learning', 'Machine Learning', 'Neurons and Cognition'],\n",
       " ['Combinatorics', 'Discrete Mathematics'],\n",
       " ['Computation and Language',\n",
       "  'Information Retrieval',\n",
       "  'Social and Information Networks'],\n",
       " ['Artificial Intelligence', 'Neurons and Cognition'],\n",
       " ['Networking and Internet Architecture', 'Optimization and Control'],\n",
       " ['Applications', 'Machine Learning'],\n",
       " ['Social and Information Networks', 'Computers and Society'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Distributed, Parallel, and Cluster Computing', 'Artificial Intelligence'],\n",
       " ['Computer Science and Game Theory',\n",
       "  'Information Theory',\n",
       "  'Information Theory'],\n",
       " ['Data Structures and Algorithms', 'Computational Complexity'],\n",
       " ['Computation and Language;\\n', 'Computation and Language'],\n",
       " ['Computational Engineering, Finance, and Science',\n",
       "  'Distributed, Parallel, and Cluster Computing',\n",
       "  'Numerical Analysis',\n",
       "  'Performance',\n",
       "  'Numerical Analysis'],\n",
       " ['Software Engineering', 'Artificial Intelligence'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory', 'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Physics and Society;\\n', 'Social and Information Networks'],\n",
       " ['Computers and Society', 'Cryptography and Security'],\n",
       " ['Artificial Intelligence', 'Distributed, Parallel, and Cluster Computing'],\n",
       " ['Neurons and Cognition',\n",
       "  'Disordered Systems and Neural Networks;\\n',\n",
       "  'Information Theory',\n",
       "  'Information Theory',\n",
       "  'Statistics and Probability;\\n'],\n",
       " ['Computation and Language', 'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Logic in Computer Science', 'Programming Languages'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computation and Language;\\n', 'Computation and Language'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence', 'Probability'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence', 'Machine Learning'],\n",
       " ['Artificial Intelligence', 'Logic in Computer Science'],\n",
       " ['Computational Complexity', 'Quantum Physics\\n'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Social and Information Networks', 'Physics and Society;\\n', 'Applications'],\n",
       " ['Information Theory', 'Cryptography and Security', 'Information Theory'],\n",
       " ['Machine Learning', 'Neural and Evolutionary Computing'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Distributed, Parallel, and Cluster Computing',\n",
       "  'Data Structures and Algorithms'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computational Complexity', 'Logic in Computer Science'],\n",
       " ['Information Theory',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Information Theory'],\n",
       " ['Symbolic Computation', 'Logic in Computer Science'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence', 'Logic in Computer Science', 'Logic'],\n",
       " ['Software Engineering', 'Mathematical Software'],\n",
       " ['Formal Languages and Automata Theory', 'Combinatorics'],\n",
       " ['Physics and Society;\\n', 'Social and Information Networks'],\n",
       " ['Neural and Evolutionary Computing', 'Artificial Intelligence'],\n",
       " ['Distributed, Parallel, and Cluster Computing',\n",
       "  'Computational Engineering, Finance, and Science'],\n",
       " ['Quantum Physics\\n', 'Information Theory', 'Information Theory'],\n",
       " ['Computational Complexity', 'Machine Learning'],\n",
       " ['Information Theory',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Networking and Internet Architecture',\n",
       "  'Information Theory',\n",
       "  'Machine Learning',\n",
       "  'Information Theory'],\n",
       " ['Information Retrieval', 'Machine Learning'],\n",
       " ['Computer Vision and Pattern Recognition',\n",
       "  'Computational Engineering, Finance, and Science'],\n",
       " ['Artificial Intelligence', 'Machine Learning'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Optimization and Control',\n",
       "  'Artificial Intelligence',\n",
       "  'Information Retrieval'],\n",
       " ['Computation and Language;\\n', 'Computation and Language'],\n",
       " ['Data Structures and Algorithms',\n",
       "  'Combinatorics',\n",
       "  'Numerical Analysis',\n",
       "  'Optimization and Control'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Statistics Theory',\n",
       "  'Information Theory',\n",
       "  'Information Theory',\n",
       "  'Statistics Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computation and Language;\\n', 'Computation and Language'],\n",
       " ['Computational Complexity', 'Quantum Physics\\n'],\n",
       " ['Data Structures and Algorithms',\n",
       "  'Distributed, Parallel, and Cluster Computing'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Probability', 'Social and Information Networks', 'Physics and Society;\\n'],\n",
       " ['Numerical Analysis',\n",
       "  'Computational Complexity',\n",
       "  'Data Structures and Algorithms',\n",
       "  'Numerical Analysis'],\n",
       " ['Machine Learning',\n",
       "  'Computational Engineering, Finance, and Science',\n",
       "  'Quantitative Methods'],\n",
       " ['Cryptography and Security', 'Multimedia'],\n",
       " ['Software Engineering', 'Formal Languages and Automata Theory'],\n",
       " ['Social and Information Networks', 'Physics and Society;\\n'],\n",
       " ['Data Structures and Algorithms', 'Cryptography and Security', 'Databases'],\n",
       " ['Data Structures and Algorithms', 'Computer Science and Game Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Quantum Physics\\n', 'Cryptography and Security'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Logic', 'Logic in Computer Science'],\n",
       " ['Machine Learning', 'Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Multimedia', 'Information Theory'],\n",
       " ['Computational Engineering, Finance, and Science', 'Mathematical Software'],\n",
       " ['Multimedia', 'Logic in Computer Science'],\n",
       " ['Distributed, Parallel, and Cluster Computing', 'Performance'],\n",
       " ['Cryptography and Security', 'Digital Libraries', 'Multimedia'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence', 'Quantum Physics\\n'],\n",
       " ['Information Theory',\n",
       "  'Systems and Control',\n",
       "  'Information Theory',\n",
       "  'Optimization and Control'],\n",
       " ['Databases',\n",
       "  'Distributed, Parallel, and Cluster Computing',\n",
       "  'Programming Languages'],\n",
       " ['Data Structures and Algorithms',\n",
       "  'Discrete Mathematics',\n",
       "  'Software Engineering',\n",
       "  'Combinatorics'],\n",
       " ['Disordered Systems and Neural Networks;\\n',\n",
       "  'Social and Information Networks',\n",
       "  'Physics and Society;\\n'],\n",
       " ['Discrete Mathematics',\n",
       "  'Computational Complexity',\n",
       "  'Data Structures and Algorithms',\n",
       "  'Combinatorics'],\n",
       " ['Machine Learning', 'Multimedia'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Combinatorics', 'Discrete Mathematics'],\n",
       " ['Computer Vision and Pattern Recognition',\n",
       "  'Artificial Intelligence',\n",
       "  'Robotics'],\n",
       " ['Computer Vision and Pattern Recognition',\n",
       "  'Machine Learning',\n",
       "  'Machine Learning'],\n",
       " ['Data Structures and Algorithms', 'Computational Geometry'],\n",
       " ['Artificial Intelligence', 'Logic in Computer Science'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computational Geometry',\n",
       "  'Computational Engineering, Finance, and Science',\n",
       "  'Numerical Analysis'],\n",
       " ['Artificial Intelligence', 'Machine Learning'],\n",
       " ['Human-Computer Interaction', 'Computers and Society'],\n",
       " ['Data Structures and Algorithms', 'Computational Complexity'],\n",
       " ['Quantum Physics\\n', 'Cryptography and Security'],\n",
       " ['Software Engineering', 'Computers and Society'],\n",
       " ['Logic in Computer Science', 'Programming Languages'],\n",
       " ['Combinatorics', 'Discrete Mathematics'],\n",
       " ['Logic in Computer Science', 'Programming Languages', 'Quantum Physics\\n'],\n",
       " ['Computational Complexity',\n",
       "  'Disordered Systems and Neural Networks;\\n',\n",
       "  'Artificial Intelligence'],\n",
       " ['Computation and Language', 'Artificial Intelligence'],\n",
       " ['Machine Learning',\n",
       "  'Machine Learning',\n",
       "  'Statistics Theory',\n",
       "  'Statistics Theory'],\n",
       " ['Computation and Language', 'Information Retrieval'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Neural and Evolutionary Computing', 'Information Retrieval'],\n",
       " ['Computation and Language;\\n', 'Computation and Language'],\n",
       " ['Information Retrieval', 'Computers and Society', 'Digital Libraries'],\n",
       " ['Logic in Computer Science', 'Formal Languages and Automata Theory'],\n",
       " ['Information Theory', 'Multiagent Systems', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Retrieval', 'Computation and Language', 'Digital Libraries'],\n",
       " ['Discrete Mathematics', 'Combinatorics'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Information Theory', 'Symbolic Computation', 'Information Theory'],\n",
       " ['Distributed, Parallel, and Cluster Computing', 'Databases'],\n",
       " ['Social and Information Networks',\n",
       "  'Artificial Intelligence',\n",
       "  'Neural and Evolutionary Computing',\n",
       "  'Physics and Society;\\n'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Computational Geometry', 'Information Theory'],\n",
       " ['Multiagent Systems', 'Logic in Computer Science'],\n",
       " ['Statistics and Probability;\\n',\n",
       "  'Computation and Language',\n",
       "  'Quantum Physics\\n'],\n",
       " ['Artificial Intelligence', 'Databases'],\n",
       " ['Data Structures and Algorithms',\n",
       "  'Discrete Mathematics',\n",
       "  'Social and Information Networks'],\n",
       " ['Social and Information Networks', 'Computers and Society', 'Applications'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Networking and Internet Architecture',\n",
       "  'Information Theory',\n",
       "  'Information Theory',\n",
       "  'Probability'],\n",
       " ['Discrete Mathematics',\n",
       "  'Information Theory',\n",
       "  'Information Theory',\n",
       "  'Quantum Physics\\n'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Databases', 'Data Structures and Algorithms'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Neural and Evolutionary Computing', 'Artificial Intelligence'],\n",
       " ['Logic in Computer Science', 'Networking and Internet Architecture'],\n",
       " ['Computation and Language;\\n', 'Computation and Language'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory',\n",
       "  'Computer Vision and Pattern Recognition',\n",
       "  'Information Theory'],\n",
       " ['Artificial Intelligence', 'Neural and Evolutionary Computing'],\n",
       " ['Data Structures and Algorithms', 'Computational Geometry'],\n",
       " ['Quantum Physics\\n', 'Computational Complexity'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Databases', 'Data Structures and Algorithms'],\n",
       " ['Computational Engineering, Finance, and Science', 'Computational Geometry'],\n",
       " ['Networking and Internet Architecture', 'Computer Science and Game Theory'],\n",
       " ['Discrete Mathematics', 'Combinatorics'],\n",
       " ['Applications', 'Computer Vision and Pattern Recognition'],\n",
       " ['Information Theory', 'Cryptography and Security', 'Information Theory'],\n",
       " ['Neural and Evolutionary Computing',\n",
       "  'Computer Vision and Pattern Recognition'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Quantum Physics\\n', 'Information Theory', 'Information Theory'],\n",
       " ['Distributed, Parallel, and Cluster Computing',\n",
       "  'Systems and Control',\n",
       "  'Optimization and Control'],\n",
       " ['Artificial Intelligence', 'Computer Vision and Pattern Recognition'],\n",
       " ['Information Retrieval', 'Computation and Language'],\n",
       " ['Machine Learning', 'Computer Vision and Pattern Recognition'],\n",
       " ['Combinatorics', 'Discrete Mathematics', 'Probability'],\n",
       " ['Artificial Intelligence', 'Machine Learning'],\n",
       " ['Computational Complexity', 'Combinatorics'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computation and Language;\\n', 'Computation and Language'],\n",
       " ['Logic in Computer Science', 'Computational Complexity'],\n",
       " ['Networking and Internet Architecture', 'Performance'],\n",
       " ['Machine Learning', 'Machine Learning', 'Quantitative Methods'],\n",
       " ['Data Structures and Algorithms', 'Quantitative Methods'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Computer Vision and Pattern Recognition', 'Multimedia'],\n",
       " ['Data Structures and Algorithms', 'Formal Languages and Automata Theory'],\n",
       " ['Optimization and Control', 'Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Optimization and Control', 'Neural and Evolutionary Computing'],\n",
       " ['Computational Engineering, Finance, and Science', 'Multiagent Systems'],\n",
       " ['Computation and Language', 'Information Retrieval', 'Machine Learning'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Physics and Society;\\n',\n",
       "  'Statistical Mechanics;\\n',\n",
       "  'Social and Information Networks'],\n",
       " ['Numerical Analysis',\n",
       "  'Computational Engineering, Finance, and Science',\n",
       "  'Numerical Analysis'],\n",
       " ['Machine Learning', 'Machine Learning'],\n",
       " ['Information Theory',\n",
       "  'Combinatorics',\n",
       "  'Information Theory',\n",
       "  'Quantum Physics\\n'],\n",
       " ['Information Theory',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Information Theory'],\n",
       " ['Systems and Control', 'Multiagent Systems', 'Robotics'],\n",
       " ['Neurons and Cognition',\n",
       "  'Information Theory',\n",
       "  'Information Theory',\n",
       "  'Quantitative Methods',\n",
       "  'Methodology'],\n",
       " ['Information Theory', 'Information Theory', 'Numerical Analysis'],\n",
       " ['Networking and Internet Architecture',\n",
       "  'Information Theory',\n",
       "  'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Systems and Control', 'Optimization and Control', 'Physics and Society;\\n'],\n",
       " ['Combinatorics', 'Machine Learning'],\n",
       " ['Optimization and Control', 'Systems and Control'],\n",
       " ['Computational Geometry', 'Discrete Mathematics'],\n",
       " ['Quantum Physics\\n', 'Information Theory', 'Information Theory'],\n",
       " ['Numerical Analysis', 'Numerical Analysis'],\n",
       " ['Information Retrieval', 'Computation and Language'],\n",
       " ['Quantum Physics\\n', 'Logic in Computer Science'],\n",
       " ['Information Theory',\n",
       "  'Disordered Systems and Neural Networks;\\n',\n",
       "  'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Quantum Physics\\n', 'Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Data Structures and Algorithms', 'Discrete Mathematics'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Artificial Intelligence', 'Applications'],\n",
       " ['Artificial Intelligence',\n",
       "  'Data Structures and Algorithms',\n",
       "  'Multiagent Systems'],\n",
       " ['Information Theory', 'Information Theory'],\n",
       " ['Information Theory',\n",
       "  'Networking and Internet Architecture',\n",
       "  'Information Theory'],\n",
       " ['Information Theory', 'Information Theory']]"
      ]
     },
     "execution_count": 60,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "file2 = open('../datasets/AAPD/label_test.txt', 'r')\n",
    "org_true_label = file2.readlines()\n",
    "true_label = []\n",
    "for row in org_true_label:\n",
    "    short_label = row.strip().split(' ')\n",
    "    long_label = []\n",
    "    for index in short_label:\n",
    "        long_label.append(label_dic[index])\n",
    "    true_label.append(long_label)\n",
    "true_label"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 61,
   "metadata": {},
   "outputs": [],
   "source": [
    "from sentence_transformers import SentenceTransformer, util\n",
    "\n",
    "model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2', device = 0)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 62,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Computer Vision ['Computer Vision and Pattern Recognition', 'Machine Learning']\n",
      "[0.7780858 0.5183859]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Multi-Agent Systems ['Artificial Intelligence', 'Data Structures and Algorithms']\n",
      "[0.4243873  0.22103155]\n",
      "Scientific Inquiry ['Combinatorics', 'Discrete Mathematics', 'Probability']\n",
      "[0.20314917 0.192951   0.1881992 ]\n",
      "Wireless Communications ['Information Theory', 'Networking and Internet Architecture', 'Information Theory', 'Probability']\n",
      "[0.35326254 0.41110715 0.35326254 0.08893187]\n",
      "Optimization ['Computer Vision and Pattern Recognition', 'Information Theory', 'Information Theory']\n",
      "[0.28733635 0.28889236 0.28889236]\n",
      "Wiretap Channel and Lattice Coset Encoding ['Information Theory', 'Information Theory']\n",
      "[0.27901918 0.27901918]\n",
      "Scientific Inquiry ['Computer Science and Game Theory', 'Networking and Internet Architecture']\n",
      "[0.23837295 0.09878353]\n",
      "Text Mining and Visualization ['Computers and Society', 'Logic in Computer Science']\n",
      "[0.21845986 0.26133144]\n",
      "Community Detection in Networks ['Machine Learning', 'Social and Information Networks', 'Machine Learning']\n",
      "[0.30876994 0.45789096 0.30876994]\n",
      "Bioinformatics ['Combinatorics', 'Discrete Mathematics']\n",
      "[0.22855592 0.13608634]\n",
      "Network Aggregation and Fault Tolerance ['Information Theory', 'Information Theory']\n",
      "[0.21428254 0.21428253]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Computational Geometry']\n",
      "[0.46037382 0.47332916]\n",
      "User Interface Design and Automated Decision Systems ['Computation and Language;\\n', 'Computation and Language']\n",
      "[0.28557032 0.25974062]\n",
      "Probability Theory and Statistics ['Information Theory', 'Artificial Intelligence', 'Machine Learning', 'Information Theory']\n",
      "[0.5041874  0.29543242 0.31702483 0.5041874 ]\n",
      "Multi-Agent Systems ['Multiagent Systems', 'Artificial Intelligence', 'Logic in Computer Science']\n",
      "[0.82243603 0.42438728 0.30366832]\n",
      "Model-Driven Engineering ['Physics and Society;\\n', 'Computational Engineering, Finance, and Science', 'Computers and Society', 'Social and Information Networks']\n",
      "[0.10376164 0.3704335  0.11744801 0.09717316]\n",
      "Network Aggregation and Fault Tolerance ['Information Theory', 'Information Theory']\n",
      "[0.21428254 0.21428253]\n",
      "Optimization ['Networking and Internet Architecture', 'Information Theory', 'Information Theory']\n",
      "[0.20750132 0.28889236 0.28889236]\n",
      "Formal Verification ['Formal Languages and Automata Theory', 'Computational Complexity']\n",
      "[0.512061   0.24771915]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Computational Complexity ['Computational Complexity', 'Combinatorics']\n",
      "[1.         0.33335114]\n",
      "Signal Processing ['Computational Engineering, Finance, and Science', 'Statistics Theory', 'Statistics Theory']\n",
      "[0.2280118  0.3630855  0.36308548]\n",
      "Error Correction Codes ['Combinatorics', 'Information Theory', 'Information Theory', 'Quantum Physics\\n']\n",
      "[ 0.18773961  0.17080349  0.17080349 -0.00048779]\n",
      "Multi-Agent Systems ['Physics and Society;\\n', 'Statistical Mechanics;\\n', 'Social and Information Networks']\n",
      "[0.11881063 0.23417293 0.2639085 ]\n",
      "Information Retrieval ['Computational Geometry', 'Data Structures and Algorithms']\n",
      "[0.20437175 0.3888525 ]\n",
      "Probability Theory and Statistics ['Information Theory', 'Information Theory']\n",
      "[0.50418735 0.5041874 ]\n",
      "Optimization ['Networking and Internet Architecture', 'Information Theory', 'Information Theory']\n",
      "[0.20750132 0.28889236 0.28889236]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Multi-Agent Systems ['Physics and Society;\\n', 'Social and Information Networks']\n",
      "[0.11881068 0.26390854]\n",
      "Wireless Communications ['Data Structures and Algorithms', 'Information Theory', 'Information Theory']\n",
      "[0.17338923 0.35326254 0.35326254]\n",
      "Recommender Systems ['Computation and Language', 'Information Retrieval', 'Machine Learning', 'Machine Learning']\n",
      "[0.1501834  0.45725882 0.3924826  0.3924826 ]\n",
      "Game Theory ['Discrete Mathematics', 'Computer Science and Game Theory', 'Robotics', 'Combinatorics', 'Probability']\n",
      "[0.3171919  0.83262396 0.24729468 0.30996615 0.27210957]\n",
      "Multi-Agent Systems ['Networking and Internet Architecture', 'Data Structures and Algorithms', 'Computer Science and Game Theory']\n",
      "[0.30660185 0.22103153 0.4047235 ]\n",
      "Database Management ['Databases', 'Distributed, Parallel, and Cluster Computing']\n",
      "[0.80001694 0.2847002 ]\n",
      "Formal Methods for System Verification and Synthesis ['Information Theory', 'Information Theory']\n",
      "[0.07123769 0.07123769]\n",
      "Quantum Computing ['Quantum Physics\\n', 'Cryptography and Security']\n",
      "[0.7059134  0.32259566]\n",
      "Formal Verification ['Logic', 'Artificial Intelligence']\n",
      "[0.36653665 0.2636615 ]\n",
      "Bioinformatics ['Computational Engineering, Finance, and Science', 'Machine Learning']\n",
      "[0.32955682 0.4655412 ]\n",
      "Machine Learning ['Computers and Society', 'Multiagent Systems']\n",
      "[0.315375   0.23972854]\n",
      "Data Compression and Coding ['Information Theory', 'Information Theory']\n",
      "[0.41354683 0.41354683]\n",
      "Community Detection in Networks ['Data Structures and Algorithms', 'Disordered Systems and Neural Networks;\\n', 'Physics and Society;\\n']\n",
      "[0.26848018 0.23253918 0.15823947]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Computational Complexity']\n",
      "[0.46037382 1.0000001 ]\n",
      "Image Segmentation ['Optimization and Control', 'Machine Learning', 'Machine Learning']\n",
      "[0.30777708 0.42146832 0.42146832]\n",
      "Clustering and Partitioning ['Machine Learning', 'Machine Learning']\n",
      "[0.33123413 0.33123413]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Machine Learning ['Computer Vision and Pattern Recognition', 'Computation and Language']\n",
      "[0.49303254 0.34107947]\n",
      "Social Network Analysis ['Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.7701023  0.20389487]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Quantum Computing ['Quantum Physics\\n', 'Cryptography and Security']\n",
      "[0.7059134  0.32259566]\n",
      "Game Theory ['Combinatorics', 'Discrete Mathematics']\n",
      "[0.30996606 0.31719196]\n",
      "Data Privacy and Security ['Databases', 'Cryptography and Security']\n",
      "[0.47336167 0.6708385 ]\n",
      "Information Retrieval ['Information Retrieval', 'Computation and Language']\n",
      "[1.         0.32084054]\n",
      "Mobile Computing ['Cryptography and Security', 'Social and Information Networks']\n",
      "[0.21634196 0.25304624]\n",
      "Neural Networks and Deep Learning ['Computer Vision and Pattern Recognition', 'Machine Learning', 'Neural and Evolutionary Computing']\n",
      "[0.48267108 0.5375415  0.4500334 ]\n",
      "Formal Methods for System Verification and Synthesis ['Software Engineering', 'Logic in Computer Science', 'Robotics']\n",
      "[0.27049488 0.3778267  0.19406855]\n",
      "Model-Driven Engineering ['Software Engineering', 'Formal Languages and Automata Theory']\n",
      "[0.46466085 0.31171992]\n",
      "Statistical Process Control ['Information Theory', 'Information Theory']\n",
      "[0.25397694 0.2539769 ]\n",
      "Information Theory ['Information Theory', 'Information Theory']\n",
      "[1.0000001 1.0000001]\n",
      "Information Retrieval and Web Mining ['Databases', 'Artificial Intelligence', 'Computation and Language']\n",
      "[0.34951892 0.3538679  0.30528003]\n",
      "Formal Verification ['Computer Science and Game Theory', 'Logic in Computer Science', 'Logic']\n",
      "[0.13367851 0.44768038 0.36653662]\n",
      "Cryptography ['Computational Complexity', 'Cryptography and Security', 'Data Structures and Algorithms']\n",
      "[0.34112918 0.8977583  0.37828138]\n",
      "Signal Processing ['Neural and Evolutionary Computing', 'Neurons and Cognition']\n",
      "[0.33912596 0.3357764 ]\n",
      "Data Compression and Coding ['Information Theory', 'Information Theory']\n",
      "[0.41354683 0.41354683]\n",
      "Formal Methods for System Verification and Synthesis ['Robotics', 'Systems and Control']\n",
      "[0.1940686  0.34513998]\n",
      "Computational Complexity ['Machine Learning', 'Machine Learning']\n",
      "[0.33507648 0.33507648]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Discrete Mathematics']\n",
      "[0.46037382 0.37189886]\n",
      "Computational Complexity ['Computational Engineering, Finance, and Science', 'Numerical Analysis']\n",
      "[0.40324906 0.36237556]\n",
      "Probability Theory and Statistics ['Machine Learning', 'Machine Learning']\n",
      "[0.31702483 0.3170249 ]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Social Network Analysis ['Human-Computer Interaction', 'Computers and Society']\n",
      "[0.24795608 0.2934187 ]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Computational Complexity ['Statistical Mechanics;\\n', 'Disordered Systems and Neural Networks;\\n', 'Information Theory', 'Information Theory']\n",
      "[0.27503383 0.31716302 0.41654158 0.41654158]\n",
      "Data Compression and Coding ['Information Theory', 'Information Theory']\n",
      "[0.41354683 0.41354683]\n",
      "Computational Complexity ['Computational Complexity', 'Logic in Computer Science', 'Combinatorics']\n",
      "[1.        0.4083496 0.3333512]\n",
      "Computational Complexity ['Information Theory', 'Computation and Language', 'Information Theory']\n",
      "[0.41654158 0.57079107 0.41654158]\n",
      "Computational Complexity ['Artificial Intelligence', 'Information Theory', 'Information Theory', 'Statistics Theory', 'Statistics Theory']\n",
      "[0.3865744  0.41654164 0.41654164 0.30166578 0.30166575]\n",
      "Multi-Agent Systems ['Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.26390857 0.11881071]\n",
      "Control Theory ['Information Theory', 'Systems and Control', 'Information Theory', 'Optimization and Control']\n",
      "[0.358064   0.7228979  0.358064   0.59166384]\n",
      "Optimization Problems in Communication Networks ['Networking and Internet Architecture', 'Performance']\n",
      "[0.4263037  0.16648296]\n",
      "Network Security ['Systems and Control', 'Optimization and Control']\n",
      "[0.2482883  0.21513659]\n",
      "Optimization ['Machine Learning', 'Machine Learning']\n",
      "[0.4733091  0.47330916]\n",
      "Optimization ['Machine Learning', 'Machine Learning']\n",
      "[0.4733091  0.47330916]\n",
      "Computational Complexity ['Artificial Intelligence', 'Data Structures and Algorithms']\n",
      "[0.38657445 0.46037382]\n",
      "Game Theory ['Logic', 'Logic in Computer Science', 'Combinatorics']\n",
      "[0.412907   0.31960025 0.30996612]\n",
      "Computational Complexity ['Quantitative Methods', 'Data Structures and Algorithms']\n",
      "[0.33190382 0.46037382]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Formal Verification ['Cryptography and Security', 'Software Engineering']\n",
      "[0.27957195 0.21337818]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Graph Colorings ['Discrete Mathematics', 'Combinatorics']\n",
      "[0.28458762 0.28778556]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Formal Verification ['Artificial Intelligence', 'Logic in Computer Science']\n",
      "[0.26366156 0.44768032]\n",
      "Social Network Analysis ['Social and Information Networks', 'Computers and Society']\n",
      "[0.7701023 0.2934187]\n",
      "Recommender Systems ['Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.46551856 0.12572466]\n",
      "Clustering and Partitioning ['Numerical Analysis', 'Information Theory', 'Information Theory']\n",
      "[0.20777035 0.26457828 0.26457828]\n",
      "Natural Language Processing ['Artificial Intelligence', 'Computation and Language']\n",
      "[0.42930523 0.44363815]\n",
      "Information Retrieval ['Artificial Intelligence', 'Machine Learning', 'Machine Learning']\n",
      "[0.4723924 0.5572253 0.5572252]\n",
      "Optimization ['Information Theory', 'Information Theory']\n",
      "[0.2888923 0.2888923]\n",
      "Computational Complexity ['Robotics', 'Artificial Intelligence']\n",
      "[0.21623872 0.38657436]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Data Privacy and Security ['Cryptography and Security', 'Human-Computer Interaction']\n",
      "[0.6708386 0.2358217]\n",
      "Recommender Systems ['Computation and Language', 'Social and Information Networks']\n",
      "[0.15018338 0.46551856]\n",
      "Computer Vision ['Machine Learning', 'Computer Vision and Pattern Recognition', 'Machine Learning']\n",
      "[0.5183859 0.7780859 0.5183859]\n",
      "Model-Driven Engineering ['Optimization and Control', 'Systems and Control']\n",
      "[0.30848873 0.31266075]\n",
      "Computational Complexity ['Computer Vision and Pattern Recognition', 'Artificial Intelligence', 'Adaptation and Self-Organizing Systems', 'Machine Learning']\n",
      "[0.22725828 0.38657436 0.29239985 0.33507645]\n",
      "Functional Data Analysis ['Physics and Society;\\n', 'Digital Libraries']\n",
      "[0.13975376 0.18978576]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Text Mining and Visualization ['Computation and Language;\\n', 'Computation and Language']\n",
      "[0.32130238 0.3052888 ]\n",
      "Computational Complexity ['Machine Learning', 'Optimization and Control']\n",
      "[0.33507645 0.30672348]\n",
      "Network Aggregation and Fault Tolerance ['Information Retrieval', 'Multimedia']\n",
      "[0.13110186 0.07696272]\n",
      "Computational Complexity ['Combinatorics', 'Data Structures and Algorithms']\n",
      "[0.33335117 0.46037382]\n",
      "Model-Driven Engineering ['Computers and Society', 'Programming Languages']\n",
      "[0.11744799 0.25215068]\n",
      "Error Correction Codes ['Information Theory', 'Discrete Mathematics', 'Information Theory']\n",
      "[0.17080347 0.10916609 0.17080347]\n",
      "Machine Learning ['Machine Learning', 'Machine Learning']\n",
      "[1. 1.]\n",
      "Natural Language Processing ['Formal Languages and Automata Theory', 'Discrete Mathematics']\n",
      "[0.28295687 0.17657262]\n",
      "Machine Learning ['Computer Vision and Pattern Recognition', 'Machine Learning']\n",
      "[0.49303254 1.        ]\n",
      "Anomaly Detection in Time Series ['Information Theory', 'Information Theory']\n",
      "[0.25409868 0.25409868]\n",
      "Formal Methods for System Verification and Synthesis ['Programming Languages', 'Artificial Intelligence', 'Symbolic Computation']\n",
      "[0.30221295 0.16905142 0.41847304]\n",
      "Graph Algorithms ['Combinatorics', 'Discrete Mathematics']\n",
      "[0.33279368 0.36503422]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Discrete Mathematics']\n",
      "[0.46037382 0.37189886]\n",
      "Data Privacy and Security ['Multimedia', 'Cryptography and Security']\n",
      "[0.1744684 0.6708385]\n",
      "Information Theory ['Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.40673703 0.24953496]\n",
      "Information Theory ['Information Theory', 'Computational Complexity', 'Information Theory', 'Probability']\n",
      "[1.         0.4165417  1.         0.18611407]\n",
      "Computational Complexity ['Computational Complexity', 'Computational Geometry', 'Discrete Mathematics']\n",
      "[1.         0.47332916 0.37189892]\n",
      "Graph Algorithms ['Machine Learning', 'Computer Vision and Pattern Recognition']\n",
      "[0.37006712 0.2415946 ]\n",
      "Optimization ['Computer Vision and Pattern Recognition', 'Robotics']\n",
      "[0.28733638 0.35959023]\n",
      "Formal Verification ['Programming Languages', 'Logic in Computer Science']\n",
      "[0.24127202 0.44768032]\n",
      "Computational Complexity ['Optimization and Control', 'Information Theory', 'Information Theory', 'Probability']\n",
      "[0.30672348 0.41654164 0.41654164 0.16218498]\n",
      "Mobile Computing ['Human-Computer Interaction', 'Multimedia']\n",
      "[0.40769973 0.43612906]\n",
      "Multi-Agent Systems ['Symbolic Computation', 'Logic in Computer Science', 'Systems and Control']\n",
      "[0.2613023  0.3036683  0.51404405]\n",
      "Cryptography ['Cryptography and Security', 'Information Theory', 'Information Theory']\n",
      "[0.8977584  0.43407765 0.43407765]\n",
      "Network Aggregation and Fault Tolerance ['Information Theory', 'Information Theory']\n",
      "[0.21428254 0.21428253]\n",
      "Multi-Agent Systems ['Systems and Control', 'Optimization and Control']\n",
      "[0.51404405 0.33399633]\n",
      "Data Compression and Coding ['Information Theory', 'Information Theory']\n",
      "[0.41354683 0.41354683]\n",
      "Computational Complexity ['Distributed, Parallel, and Cluster Computing', 'Programming Languages']\n",
      "[0.3940398 0.3488866]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Computational Complexity ['Distributed, Parallel, and Cluster Computing', 'Networking and Internet Architecture']\n",
      "[0.3940398  0.19918905]\n",
      "Computational Complexity ['Computational Complexity', 'Information Theory', 'Information Theory']\n",
      "[1.         0.41654158 0.4165416 ]\n",
      "Probability Theory and Statistics ['Systems and Control', 'Statistical Mechanics;\\n']\n",
      "[0.19296667 0.6441634 ]\n",
      "Wireless Communications ['Networking and Internet Architecture', 'Cryptography and Security', 'Information Theory', 'Information Theory']\n",
      "[0.41110715 0.27752402 0.35326254 0.35326254]\n",
      "Probability Theory and Statistics ['Machine Learning', 'Artificial Intelligence', 'Information Theory', 'Information Theory', 'Statistics Theory', 'Statistics Theory']\n",
      "[0.3170248  0.29543248 0.5041874  0.5041874  0.8752099  0.8752098 ]\n",
      "Multi-Agent Systems ['Computer Science and Game Theory', 'Social and Information Networks']\n",
      "[0.40472355 0.26390854]\n",
      "Multi-Agent Systems ['Computer Science and Game Theory', 'Networking and Internet Architecture', 'Physics and Society;\\n']\n",
      "[0.4047235  0.30660188 0.11881063]\n",
      "Machine Learning ['Computer Vision and Pattern Recognition', 'Machine Learning']\n",
      "[0.49303254 1.        ]\n",
      "Optimization ['Mathematical Software', 'Computational Engineering, Finance, and Science', 'Performance']\n",
      "[0.40042773 0.32389268 0.4351092 ]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Wiretap Channel and Lattice Coset Encoding ['Information Theory', 'Information Theory']\n",
      "[0.27901918 0.27901918]\n",
      "Wireless Communications ['Cryptography and Security', 'Information Theory', 'Information Theory']\n",
      "[0.27752405 0.35326254 0.35326254]\n",
      "Formal Verification ['Computational Complexity', 'Formal Languages and Automata Theory']\n",
      "[0.24771917 0.512061  ]\n",
      "Data Privacy and Security ['Computers and Society', 'Cryptography and Security']\n",
      "[0.33107522 0.6708385 ]\n",
      "Error Correction Codes ['Information Theory', 'Information Theory']\n",
      "[0.17080347 0.17080347]\n",
      "Graph Algorithms ['Computational Geometry', 'Data Structures and Algorithms', 'Robotics']\n",
      "[0.46568412 0.58960474 0.2872745 ]\n",
      "Social Network Analysis ['Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.7701023  0.20389487]\n",
      "Error Correction Codes ['Information Theory', 'Information Theory']\n",
      "[0.17080347 0.17080347]\n",
      "Combinatorics ['Information Theory', 'Information Theory']\n",
      "[0.22386001 0.22386003]\n",
      "Data Compression and Coding ['Information Theory', 'Information Theory']\n",
      "[0.41354683 0.41354683]\n",
      "Text Mining and Visualization ['Machine Learning', 'Computer Vision and Pattern Recognition', 'Machine Learning']\n",
      "[0.40640467 0.23152676 0.40640467]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Image Segmentation ['Computers and Society', 'Computer Vision and Pattern Recognition']\n",
      "[0.21849473 0.5134452 ]\n",
      "Combinatorics ['Computational Geometry', 'Data Structures and Algorithms']\n",
      "[0.20898576 0.22967085]\n",
      "Data Privacy and Security ['Information Theory', 'Information Theory']\n",
      "[0.4184546  0.41845462]\n",
      "Information Retrieval ['Digital Libraries', 'Information Retrieval']\n",
      "[0.4020483 1.0000001]\n",
      "Bioinformatics ['Data Structures and Algorithms', 'Information Theory', 'Information Theory']\n",
      "[0.35750183 0.23308918 0.23308918]\n",
      "Computational Complexity ['Cryptography and Security', 'Neural and Evolutionary Computing']\n",
      "[0.24224743 0.38221657]\n",
      "Computational Complexity ['Machine Learning', 'Artificial Intelligence', 'Statistics Theory', 'Machine Learning', 'Statistics Theory']\n",
      "[0.3350765  0.3865744  0.30166578 0.3350765  0.30166575]\n",
      "Signal Processing ['Information Theory', 'Information Theory']\n",
      "[0.3976476 0.3976476]\n",
      "Computational Complexity ['Numerical Analysis', 'Numerical Analysis']\n",
      "[0.36237565 0.36237562]\n",
      "Data Privacy and Security ['Quantum Physics\\n', 'Logic in Computer Science']\n",
      "[0.18487112 0.24209146]\n",
      "Signal Processing ['Information Theory', 'Information Theory', 'Numerical Analysis', 'Machine Learning']\n",
      "[0.39764756 0.39764756 0.3260119  0.4512031 ]\n",
      "Computational Complexity ['Computer Vision and Pattern Recognition', 'Information Theory', 'Combinatorics', 'Information Theory', 'Optimization and Control']\n",
      "[0.22725832 0.41654164 0.33335114 0.41654164 0.3067234 ]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Game Theory ['Computer Science and Game Theory', 'Networking and Internet Architecture']\n",
      "[0.83262396 0.19182889]\n",
      "Formal Methods for System Verification and Synthesis ['Distributed, Parallel, and Cluster Computing', 'Discrete Mathematics']\n",
      "[0.15346166 0.07091486]\n",
      "Computational Complexity ['Numerical Analysis', 'Machine Learning', 'Machine Learning']\n",
      "[0.36237565 0.33507648 0.33507648]\n",
      "Model-Driven Engineering ['Systems and Control', 'Optimization and Control']\n",
      "[0.31266075 0.30848873]\n",
      "Wiretap Channel and Lattice Coset Encoding ['Information Theory', 'Information Theory']\n",
      "[0.27901918 0.27901918]\n",
      "Scientometrics ['Physics and Society;\\n', 'Digital Libraries']\n",
      "[0.38145468 0.26087242]\n",
      "Recommender Systems ['Machine Learning', 'Machine Learning']\n",
      "[0.39248255 0.3924826 ]\n",
      "Probability Theory and Statistics ['Statistics Theory', 'Artificial Intelligence', 'Machine Learning', 'Machine Learning', 'Statistics Theory']\n",
      "[0.87520975 0.29543248 0.3170248  0.3170248  0.8752099 ]\n",
      "Optimization Problems in Communication Networks ['Physics and Society;\\n', 'Social and Information Networks']\n",
      "[0.04111017 0.33141685]\n",
      "Quantum Computing ['Information Theory', 'Information Theory']\n",
      "[0.2971276 0.2971276]\n",
      "Multi-Agent Systems ['Computer Science and Game Theory', 'Logic in Computer Science', 'Multiagent Systems']\n",
      "[0.4047235  0.3036683  0.82243603]\n",
      "Communication Systems and Networks ['Information Theory', 'Information Theory']\n",
      "[0.46368062 0.46368068]\n",
      "Computational Complexity ['Combinatorics', 'Discrete Mathematics']\n",
      "[0.33335117 0.37189886]\n",
      "Wireless Communications ['Networking and Internet Architecture', 'Information Theory', 'Information Theory']\n",
      "[0.4111072  0.35326254 0.35326254]\n",
      "Optimization ['Optimization and Control', 'Systems and Control']\n",
      "[0.8223881  0.28561252]\n",
      "Graph Colorings ['Information Theory', 'Information Theory']\n",
      "[0.19156314 0.19156316]\n",
      "Information Retrieval ['Probability', 'Discrete Mathematics']\n",
      "[0.21678858 0.18987016]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Model-Driven Engineering ['Machine Learning', 'Applications']\n",
      "[0.2681444  0.22062798]\n",
      "Computational Complexity ['Optimization and Control', 'Machine Learning', 'Numerical Analysis', 'Numerical Analysis', 'Machine Learning']\n",
      "[0.30672348 0.33507645 0.36237562 0.36237562 0.33507645]\n",
      "Computational Complexity ['Information Theory', 'Information Theory', 'Statistics Theory', 'Statistics Theory']\n",
      "[0.41654164 0.41654164 0.30166572 0.30166572]\n",
      "Computational Complexity ['Combinatorics', 'Computational Complexity', 'Probability']\n",
      "[0.33335122 1.0000001  0.16218498]\n",
      "Multi-Agent Systems ['Systems and Control', 'Optimization and Control']\n",
      "[0.51404405 0.33399633]\n",
      "Cryptography ['Quantum Physics\\n', 'Cryptography and Security']\n",
      "[0.31363446 0.89775836]\n",
      "Linear Codes and Sphere Decoding ['Information Theory', 'Information Theory']\n",
      "[0.35875127 0.3587513 ]\n",
      "Social Network Analysis ['Social and Information Networks', 'Computers and Society', 'Applications', 'Machine Learning']\n",
      "[0.77010214 0.29341877 0.20618878 0.35030344]\n",
      "Computational Complexity ['Computational Complexity', 'Data Structures and Algorithms']\n",
      "[1.         0.46037382]\n",
      "Data Mining ['Computational Engineering, Finance, and Science', 'Machine Learning']\n",
      "[0.23121363 0.72039765]\n",
      "Probability Theory and Statistics ['Information Theory', 'Information Theory']\n",
      "[0.50418735 0.5041874 ]\n",
      "Multi-Agent Systems ['Information Theory', 'Information Theory']\n",
      "[0.283351   0.28335097]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Multi-Agent Systems ['Networking and Internet Architecture', 'Multiagent Systems']\n",
      "[0.30660185 0.82243603]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Computational Complexity ['Combinatorics', 'Discrete Mathematics']\n",
      "[0.33335117 0.37189886]\n",
      "Wireless Communications ['Networking and Internet Architecture', 'Discrete Mathematics']\n",
      "[0.41110715 0.18360119]\n",
      "Information Retrieval and Web Mining ['Networking and Internet Architecture', 'Physics and Society;\\n']\n",
      "[0.19000417 0.09236548]\n",
      "Scientometrics ['Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.24929251 0.38145462]\n",
      "Signal Processing ['Information Theory', 'Information Theory']\n",
      "[0.3976476 0.3976476]\n",
      "Probability Theory and Statistics ['Information Theory', 'Information Theory', 'Probability']\n",
      "[0.50418735 0.5041874  0.621955  ]\n",
      "Computational Complexity ['Discrete Mathematics', 'Combinatorics']\n",
      "[0.37189892 0.33335114]\n",
      "Optimization ['Machine Learning', 'Machine Learning', 'Statistics Theory', 'Statistics Theory']\n",
      "[0.4733091 0.4733091 0.2691201 0.2691201]\n",
      "Machine Learning ['Machine Learning', 'Machine Learning', 'Optimization and Control']\n",
      "[0.99999994 1.         0.40117913]\n",
      "Machine Learning ['Information Retrieval', 'Machine Learning']\n",
      "[0.55722517 1.        ]\n",
      "Computational Complexity ['Information Theory', 'Information Theory', 'Numerical Analysis']\n",
      "[0.4165416  0.41654158 0.36237565]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Logic and Formal Systems ['Programming Languages', 'Logic in Computer Science']\n",
      "[0.3864558 0.7131202]\n",
      "Computational Complexity ['Combinatorics', 'Discrete Mathematics']\n",
      "[0.33335117 0.37189886]\n",
      "Formal Methods for System Verification and Synthesis ['Computation and Language;\\n', 'Computation and Language']\n",
      "[0.38166806 0.388635  ]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Information Theory ['Information Theory', 'Information Theory']\n",
      "[1.0000001 1.0000001]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Networking and Internet Architecture', 'Information Theory']\n",
      "[0.33844742 0.42630377 0.33844742]\n",
      "Computational Complexity ['Combinatorics', 'Discrete Mathematics']\n",
      "[0.33335117 0.37189886]\n",
      "Computational Complexity ['Databases', 'Data Structures and Algorithms', 'Information Retrieval']\n",
      "[0.1800404  0.46037382 0.20476043]\n",
      "Wireless Communications ['Cryptography and Security', 'Networking and Internet Architecture']\n",
      "[0.27752405 0.41110715]\n",
      "Optimization ['Information Theory', 'Information Theory']\n",
      "[0.2888923 0.2888923]\n",
      "Quantum Computing ['Information Theory', 'Information Theory']\n",
      "[0.2971276 0.2971276]\n",
      "Image Segmentation ['Optimization and Control', 'Computer Vision and Pattern Recognition']\n",
      "[0.3077771 0.5134452]\n",
      "Social Network Analysis ['Physics and Society;\\n', 'Social and Information Networks']\n",
      "[0.2038949  0.77010214]\n",
      "Information Theory ['Information Theory', 'Information Theory', 'Quantum Physics\\n']\n",
      "[1.0000001  1.0000001  0.31471014]\n",
      "Optimization Problems in Communication Networks ['Physics and Society;\\n', 'Social and Information Networks']\n",
      "[0.04111017 0.33141685]\n",
      "Signal Processing ['Information Theory', 'Information Theory']\n",
      "[0.3976476 0.3976476]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Data Mining ['Machine Learning', 'Artificial Intelligence', 'Machine Learning']\n",
      "[0.7203976 0.5463269 0.7203976]\n",
      "Theoretical Computer Science ['Computation and Language;\\n', 'Computation and Language']\n",
      "[0.49286836 0.520314  ]\n",
      "Information Theory ['Information Theory', 'Machine Learning', 'Information Theory', 'Machine Learning']\n",
      "[1.         0.41611207 1.         0.41611207]\n",
      "Recommender Systems ['Computation and Language', 'Machine Learning']\n",
      "[0.15018338 0.39248258]\n",
      "Network Security ['Cryptography and Security', 'Networking and Internet Architecture']\n",
      "[0.56298715 0.5123006 ]\n",
      "Optimization ['Computer Vision and Pattern Recognition', 'Machine Learning', 'Neural and Evolutionary Computing']\n",
      "[0.28733635 0.47330916 0.3643229 ]\n",
      "Control Systems ['Computational Engineering, Finance, and Science', 'Data Structures and Algorithms']\n",
      "[0.13547987 0.22367187]\n",
      "Community Detection in Networks ['Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.45789096 0.15823948]\n",
      "Computer Vision ['Numerical Analysis', 'Computer Vision and Pattern Recognition', 'Machine Learning', 'Optimization and Control']\n",
      "[0.224385   0.7780858  0.51838595 0.26923263]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Computational Complexity ['Computational Complexity', 'Logic in Computer Science']\n",
      "[1.         0.40834948]\n",
      "Graph Algorithms ['Discrete Mathematics', 'Data Structures and Algorithms', 'Combinatorics']\n",
      "[0.36503422 0.58960474 0.33279368]\n",
      "Signal Processing ['Information Theory', 'Disordered Systems and Neural Networks;\\n', 'Information Theory']\n",
      "[0.3976476  0.32855576 0.3976476 ]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Machine Learning ['Robotics', 'Artificial Intelligence', 'Machine Learning']\n",
      "[0.35686812 0.7034626  1.        ]\n",
      "Formal Verification ['Logic in Computer Science', 'Programming Languages']\n",
      "[0.4476803  0.24127202]\n",
      "Recommender Systems ['Physics and Society;\\n', 'Social and Information Networks']\n",
      "[0.12572463 0.46551856]\n",
      "Social Network Analysis ['Social and Information Networks', 'Physics and Society;\\n', 'Applications']\n",
      "[0.77010226 0.20389494 0.2061888 ]\n",
      "Optimization ['Machine Learning', 'Machine Learning']\n",
      "[0.4733091  0.47330916]\n",
      "Network Security ['Computers and Society', 'Cryptography and Security']\n",
      "[0.33140782 0.56298715]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Machine Learning ['Machine Learning', 'Distributed, Parallel, and Cluster Computing', 'Data Structures and Algorithms', 'Machine Learning', 'Optimization and Control']\n",
      "[1.         0.29831922 0.41816336 1.         0.40117908]\n",
      "Optimization ['Methodology', 'Artificial Intelligence', 'Machine Learning']\n",
      "[0.3135839  0.42053193 0.4733091 ]\n",
      "Formal Methods for System Verification and Synthesis ['Programming Languages', 'Logic in Computer Science']\n",
      "[0.30221298 0.3778266 ]\n",
      "Political Science ['Information Theory', 'Information Theory']\n",
      "[0.3701593 0.3701593]\n",
      "Graph Algorithms ['Probability', 'Networking and Internet Architecture']\n",
      "[0.10773227 0.27758157]\n",
      "Optimization ['Information Theory', 'Information Theory']\n",
      "[0.2888923 0.2888923]\n",
      "Mobile Computing ['Applications', 'Social and Information Networks']\n",
      "[0.4044601  0.25304624]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Optimization and Control']\n",
      "[0.46037382 0.30672348]\n",
      "Computational Complexity ['Numerical Analysis', 'Information Theory', 'Information Theory', 'Numerical Analysis']\n",
      "[0.36237568 0.41654164 0.41654164 0.36237568]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Recommender Systems ['Computers and Society', 'Human-Computer Interaction']\n",
      "[0.24259534 0.32355776]\n",
      "Machine Learning ['Quantum Physics\\n', 'Artificial Intelligence', 'Machine Learning']\n",
      "[0.23717603 0.7034626  1.        ]\n",
      "Computational Complexity ['Optimization and Control', 'Machine Learning', 'Systems and Control', 'Machine Learning']\n",
      "[0.30672348 0.33507645 0.2145383  0.33507645]\n",
      "Optimization ['Neural and Evolutionary Computing', 'Artificial Intelligence', 'Quantitative Methods']\n",
      "[0.3643229  0.42053193 0.3290102 ]\n",
      "Communication Systems and Networks ['Information Theory', 'Distributed, Parallel, and Cluster Computing', 'Data Structures and Algorithms', 'Information Theory']\n",
      "[0.46368065 0.39422116 0.35839498 0.46368065]\n",
      "Information Retrieval ['Information Retrieval', 'Artificial Intelligence']\n",
      "[1.         0.47239238]\n",
      "Graph Colorings ['Discrete Mathematics', 'Combinatorics']\n",
      "[0.28458762 0.28778556]\n",
      "Computational Complexity ['Distributed, Parallel, and Cluster Computing', 'Performance']\n",
      "[0.3940398  0.38069984]\n",
      "Formal Verification ['Logic in Computer Science', 'Symbolic Computation']\n",
      "[0.4476803  0.41895658]\n",
      "Data Privacy and Security ['Databases', 'Cryptography and Security']\n",
      "[0.47336167 0.6708385 ]\n",
      "Combinatorics ['Artificial Intelligence', 'Discrete Mathematics', 'Computer Science and Game Theory', 'Symbolic Computation']\n",
      "[0.3213009  0.6246264  0.2769131  0.29833183]\n",
      "Computational Complexity ['Combinatorics', 'Discrete Mathematics']\n",
      "[0.33335117 0.37189886]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Computational Complexity ['Discrete Mathematics', 'Optimization and Control']\n",
      "[0.37189892 0.30672348]\n",
      "Computational Complexity ['Discrete Mathematics', 'Combinatorics']\n",
      "[0.37189892 0.33335114]\n",
      "Optimization Problems in Communication Networks ['Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.33141685 0.04111017]\n",
      "Model-Driven Engineering ['Systems and Control', 'Machine Learning']\n",
      "[0.31266075 0.26814446]\n",
      "Machine Learning ['Artificial Intelligence', 'Robotics']\n",
      "[0.7034626  0.35686812]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Computational Complexity ['Distributed, Parallel, and Cluster Computing', 'Data Structures and Algorithms']\n",
      "[0.3940398  0.46037385]\n",
      "Machine Learning ['Computer Vision and Pattern Recognition', 'Machine Learning']\n",
      "[0.49303254 1.        ]\n",
      "Computational Complexity ['Statistics Theory', 'Machine Learning', 'Machine Learning', 'Statistics Theory']\n",
      "[0.30166572 0.33507648 0.33507648 0.30166572]\n",
      "Scientific Inquiry ['Computers and Society', 'Neurons and Cognition']\n",
      "[0.3071614  0.23813233]\n",
      "Mobile Computing ['Software Engineering', 'Performance']\n",
      "[0.27771023 0.28860533]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Logic in Computer Science']\n",
      "[0.46037382 0.40834948]\n",
      "Information Theory ['Information Theory', 'Information Theory']\n",
      "[1.0000001 1.0000001]\n",
      "Multi-Agent Systems ['Quantum Physics\\n', 'Cryptography and Security']\n",
      "[0.11260443 0.2012877 ]\n",
      "Wireless Communications ['Networking and Internet Architecture', 'Information Theory', 'Information Theory']\n",
      "[0.4111072  0.35326254 0.35326254]\n",
      "Multi-Armed Bandit Problems ['Artificial Intelligence', 'Computer Science and Game Theory']\n",
      "[0.2832818  0.36126563]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Natural Language Processing ['Computation and Language', 'Machine Learning']\n",
      "[0.44363818 0.4816702 ]\n",
      "Computational Complexity ['Artificial Intelligence', 'Computational Complexity']\n",
      "[0.3865744 1.0000001]\n",
      "Computer Science ['Logic in Computer Science', 'Formal Languages and Automata Theory']\n",
      "[0.5609799 0.303335 ]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Wireless Communications ['Networking and Internet Architecture', 'Computers and Society']\n",
      "[0.41110715 0.2263023 ]\n",
      "Text Mining and Visualization ['Digital Libraries', 'Physics and Society;\\n']\n",
      "[0.2811537  0.09185105]\n",
      "Data Mining ['Databases', 'Computers and Society']\n",
      "[0.4768329  0.26161274]\n",
      "Multi-Armed Bandit Problems ['Machine Learning', 'Information Retrieval']\n",
      "[0.29116198 0.25567496]\n",
      "Cryptography ['Information Theory', 'Information Theory']\n",
      "[0.43407762 0.43407762]\n",
      "Network Aggregation and Fault Tolerance ['Information Theory', 'Networking and Internet Architecture', 'Information Theory']\n",
      "[0.2142826  0.46192163 0.2142826 ]\n",
      "Computational Complexity ['Machine Learning', 'Machine Learning']\n",
      "[0.33507648 0.33507648]\n",
      "Formal Verification ['Logic in Computer Science', 'Computational Complexity']\n",
      "[0.4476803 0.2477192]\n",
      "Error Correction Codes ['Information Theory', 'Information Theory']\n",
      "[0.17080347 0.17080347]\n",
      "Machine Learning ['Information Theory', 'Information Theory', 'Statistics Theory', 'Machine Learning', 'Statistics Theory']\n",
      "[0.41611207 0.41611207 0.33608714 1.         0.33608714]\n",
      "Computational Complexity ['Machine Learning', 'Numerical Analysis']\n",
      "[0.33507648 0.36237562]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Computational Complexity ['Numerical Analysis', 'Numerical Analysis']\n",
      "[0.36237565 0.36237562]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Theoretical Computer Science ['Numerical Analysis', 'Disordered Systems and Neural Networks;\\n', 'Discrete Mathematics', 'Data Structures and Algorithms']\n",
      "[0.3296563  0.31671715 0.29464096 0.33031806]\n",
      "Scientific Inquiry ['Human-Computer Interaction', 'Multimedia']\n",
      "[0.25915846 0.16795178]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Discrete Mathematics']\n",
      "[0.46037382 0.37189886]\n",
      "Probability Theory and Statistics ['Information Theory', 'Information Theory']\n",
      "[0.50418735 0.5041874 ]\n",
      "Information Theory ['Information Theory', 'Information Theory']\n",
      "[1.0000001 1.0000001]\n",
      "Robotics and Artificial Intelligence ['Information Theory', 'Information Theory']\n",
      "[0.3194031  0.31940314]\n",
      "Community Detection in Networks ['Physics and Society;\\n', 'Social and Information Networks']\n",
      "[0.15823948 0.45789096]\n",
      "Error Correction Codes ['Cryptography and Security', 'Information Theory', 'Information Theory']\n",
      "[0.20536959 0.17080352 0.1708035 ]\n",
      "Image Segmentation ['Computer Vision and Pattern Recognition', 'Applications']\n",
      "[0.5134452  0.29515642]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Information Theory ['Information Theory', 'Information Theory']\n",
      "[1.0000001 1.0000001]\n",
      "Natural Language Processing ['Computation and Language;\\n', 'Computation and Language']\n",
      "[0.41095552 0.44363815]\n",
      "Error Correction Codes ['Information Theory', 'Information Theory']\n",
      "[0.17080347 0.17080347]\n",
      "Computational Complexity ['Computational Geometry', 'Discrete Mathematics']\n",
      "[0.47332913 0.3718988 ]\n",
      "Model-Driven Engineering ['Cryptography and Security', 'Computers and Society']\n",
      "[0.04527422 0.11744802]\n",
      "Optimization ['Information Theory', 'Networking and Internet Architecture', 'Information Theory']\n",
      "[0.28889236 0.20750132 0.28889236]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Computational Complexity ['Formal Languages and Automata Theory', 'Logic in Computer Science']\n",
      "[0.2967027 0.4083495]\n",
      "Computational Complexity ['Computational Complexity', 'Data Structures and Algorithms', 'Robotics']\n",
      "[1.         0.46037382 0.21623875]\n",
      "Machine Learning ['Machine Learning', 'Information Theory', 'Machine Learning', 'Information Theory']\n",
      "[1.       0.416112 1.       0.416112]\n",
      "Computational Complexity ['Programming Languages', 'Logic in Computer Science']\n",
      "[0.3488866  0.40834948]\n",
      "Computational Complexity ['Number Theory', 'Cryptography and Security']\n",
      "[0.21169521 0.24224743]\n",
      "Data Privacy and Security ['Cryptography and Security', 'Databases']\n",
      "[0.6708386  0.47336167]\n",
      "Computational Complexity ['Logic in Computer Science', 'Computational Complexity']\n",
      "[0.4083495 1.0000001]\n",
      "Statistical Process Control ['Physics and Society;\\n', 'Statistical Mechanics;\\n', 'Social and Information Networks']\n",
      "[0.03979126 0.44989285 0.18651031]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Computational Complexity ['Computer Science and Game Theory', 'Computational Complexity']\n",
      "[0.46683413 1.0000001 ]\n",
      "Computational Complexity ['Optimization and Control', 'Systems and Control']\n",
      "[0.30672348 0.21453828]\n",
      "Data Privacy and Security ['Information Theory', 'Information Theory']\n",
      "[0.4184546  0.41845462]\n",
      "Computational Complexity ['Programming Languages', 'Computational Engineering, Finance, and Science']\n",
      "[0.34888664 0.40324903]\n",
      "Wireless Communications ['Information Theory', 'Networking and Internet Architecture', 'Information Theory']\n",
      "[0.35326254 0.41110715 0.35326254]\n",
      "Machine Learning ['Neural and Evolutionary Computing', 'Distributed, Parallel, and Cluster Computing', 'Networking and Internet Architecture', 'Performance', 'Systems and Control']\n",
      "[0.36408743 0.29831922 0.2046235  0.36707062 0.3126624 ]\n",
      "Machine Learning ['Machine Learning', 'Applications', 'Machine Learning']\n",
      "[1.        0.4185831 1.       ]\n",
      "Network Security ['Physics and Society;\\n', 'Social and Information Networks', 'Adaptation and Self-Organizing Systems']\n",
      "[0.11290742 0.265052   0.14652182]\n",
      "Linear Codes and Sphere Decoding ['Information Theory', 'Information Theory']\n",
      "[0.35875127 0.3587513 ]\n",
      "Game Theory ['Discrete Mathematics', 'Computer Science and Game Theory']\n",
      "[0.3171919 0.8326239]\n",
      "Computational Complexity ['Symbolic Computation', 'Logic in Computer Science']\n",
      "[0.50227493 0.40834948]\n",
      "Logic and Formal Systems ['Programming Languages', 'Artificial Intelligence']\n",
      "[0.38645577 0.4074903 ]\n",
      "Signal Processing ['Information Theory', 'Networking and Internet Architecture', 'Information Theory']\n",
      "[0.39764765 0.29940015 0.39764765]\n",
      "Quantum Computing ['Quantum Physics\\n', 'Information Theory', 'Information Theory']\n",
      "[0.70591336 0.2971276  0.2971276 ]\n",
      "Game Theory ['Logic', 'Computer Science and Game Theory', 'Logic in Computer Science']\n",
      "[0.412907   0.83262384 0.31960022]\n",
      "Logic and Formal Systems ['Computation and Language', 'Artificial Intelligence', 'Logic in Computer Science']\n",
      "[0.55048865 0.40749034 0.7131204 ]\n",
      "Computational Complexity ['Combinatorics', 'Discrete Mathematics']\n",
      "[0.33335117 0.37189886]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Computational Complexity ['Artificial Intelligence', 'Systems and Control', 'Optimization and Control']\n",
      "[0.38657445 0.21453828 0.30672348]\n",
      "Data Compression and Coding ['Information Theory', 'Information Theory']\n",
      "[0.41354683 0.41354683]\n",
      "Machine Learning ['Information Retrieval', 'Machine Learning']\n",
      "[0.55722517 1.        ]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Wiretap Channel and Lattice Coset Encoding ['Information Theory', 'Information Theory']\n",
      "[0.27901918 0.27901918]\n",
      "Machine Learning ['Computation and Language', 'Neural and Evolutionary Computing']\n",
      "[0.34107953 0.36408737]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Optimization ['Computational Geometry', 'Numerical Analysis']\n",
      "[0.39136216 0.44985607]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Natural Language Processing ['Machine Learning', 'Computation and Language']\n",
      "[0.4816702  0.44363815]\n",
      "Neural Networks and Deep Learning ['Machine Learning', 'Computation and Language', 'Neural and Evolutionary Computing', 'Machine Learning']\n",
      "[0.53754157 0.33185083 0.4500335  0.53754157]\n",
      "Social Network Analysis ['Physics and Society;\\n', 'Statistical Mechanics;\\n', 'Social and Information Networks']\n",
      "[0.20389493 0.28771284 0.77010226]\n",
      "Information Theory ['Information Theory', 'Information Theory']\n",
      "[1.0000001 1.0000001]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Community Detection in Networks ['Digital Libraries', 'Social and Information Networks']\n",
      "[0.12523775 0.45789096]\n",
      "Computational Complexity ['Computational Engineering, Finance, and Science', 'Mathematical Software']\n",
      "[0.40324906 0.32603484]\n",
      "Computational Complexity ['Systems and Control', 'Data Structures and Algorithms', 'Numerical Analysis', 'Optimization and Control']\n",
      "[0.2145383  0.4603738  0.36237562 0.30672348]\n",
      "Clustering and Partitioning ['Artificial Intelligence', 'Neural and Evolutionary Computing']\n",
      "[0.23715244 0.2101261 ]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Natural Language Processing ['Computer Vision and Pattern Recognition', 'Computation and Language', 'Information Retrieval']\n",
      "[0.29388624 0.44363815 0.5049391 ]\n",
      "Recommender Systems ['Data Structures and Algorithms', 'Information Retrieval', 'Social and Information Networks']\n",
      "[0.27404654 0.45725885 0.46551856]\n",
      "Clustering and Partitioning ['Statistics and Probability;\\n', 'Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.11507352 0.23660327 0.07749234]\n",
      "Error Correction Codes ['Human-Computer Interaction', 'Software Engineering']\n",
      "[0.16462438 0.18291673]\n",
      "Multi-Agent Systems ['Optimization and Control', 'Systems and Control']\n",
      "[0.33399633 0.5140441 ]\n",
      "Mobile Computing ['Human-Computer Interaction', 'Computers and Society']\n",
      "[0.40769973 0.41275048]\n",
      "Multi-Agent Systems ['Artificial Intelligence', 'Multiagent Systems']\n",
      "[0.4243873  0.82243603]\n",
      "Computational Complexity ['Information Theory', 'Discrete Mathematics', 'Information Theory']\n",
      "[0.4165416 0.3718988 0.4165416]\n",
      "Computational Complexity ['Formal Languages and Automata Theory', 'Discrete Mathematics']\n",
      "[0.2967027  0.37189883]\n",
      "Probability Theory and Statistics ['Information Theory', 'Information Theory']\n",
      "[0.50418735 0.5041874 ]\n",
      "Signal Processing ['Information Theory', 'Information Theory']\n",
      "[0.3976476 0.3976476]\n",
      "Logic and Formal Systems ['Artificial Intelligence', 'Computational Engineering, Finance, and Science', 'Software Engineering']\n",
      "[0.4074903 0.2516848 0.2892883]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Machine Learning ['Machine Learning', 'Information Retrieval']\n",
      "[1.        0.5572251]\n",
      "Information Theory ['Information Theory', 'Information Theory']\n",
      "[1.0000001 1.0000001]\n",
      "Mobile Computing ['Distributed, Parallel, and Cluster Computing', 'Networking and Internet Architecture', 'Software Engineering']\n",
      "[0.35862103 0.3219368  0.2777103 ]\n",
      "Probability Theory and Statistics ['Machine Learning', 'Artificial Intelligence']\n",
      "[0.31702483 0.29543248]\n",
      "Computational Complexity ['Neural and Evolutionary Computing', 'Artificial Intelligence']\n",
      "[0.38221654 0.38657445]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Logic and Formal Systems ['Neural and Evolutionary Computing', 'Artificial Intelligence']\n",
      "[0.21137352 0.4074904 ]\n",
      "Machine Learning ['Machine Learning', 'Machine Learning', 'Optimization and Control', 'Probability']\n",
      "[0.9999999 0.9999999 0.4011791 0.3439823]\n",
      "Graph Algorithms ['Combinatorics', 'Discrete Mathematics']\n",
      "[0.33279368 0.36503422]\n",
      "Network Security ['Physics and Society;\\n', 'Social and Information Networks']\n",
      "[0.11290748 0.26505205]\n",
      "Wireless Communications ['Information Theory', 'Combinatorics', 'Information Theory']\n",
      "[0.35326254 0.16894558 0.35326254]\n",
      "Computational Complexity ['Optimization and Control', 'Computational Complexity', 'Combinatorics']\n",
      "[0.30672348 1.0000001  0.33335122]\n",
      "Computational Complexity ['Numerical Analysis', 'Machine Learning', 'Machine Learning']\n",
      "[0.36237565 0.33507648 0.33507648]\n",
      "Optimization ['Multimedia', 'Computer Vision and Pattern Recognition']\n",
      "[0.24644585 0.28733635]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Graph Algorithms ['Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.4969952 0.1274706]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Combinatorics']\n",
      "[0.46037382 0.33335114]\n",
      "Theoretical Computer Science ['Neural and Evolutionary Computing', 'Quantum Physics\\n']\n",
      "[0.36237895 0.36516201]\n",
      "Scientometrics ['Digital Libraries', 'Social and Information Networks']\n",
      "[0.26087245 0.24929248]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Data Compression and Coding ['Information Theory', 'Information Theory']\n",
      "[0.41354683 0.41354683]\n",
      "Formal Verification ['Programming Languages', 'Logic in Computer Science']\n",
      "[0.24127202 0.44768032]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Information Retrieval ['Artificial Intelligence', 'Databases', 'Neural and Evolutionary Computing', 'Machine Learning']\n",
      "[0.47239238 0.476811   0.17678255 0.5572251 ]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Computational Complexity ['Discrete Mathematics', 'Combinatorics']\n",
      "[0.37189892 0.33335114]\n",
      "Optimization ['Machine Learning', 'Machine Learning']\n",
      "[0.4733091  0.47330916]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Graph Algorithms ['Probability', 'Discrete Mathematics']\n",
      "[0.10773227 0.36503416]\n",
      "Formal Methods for System Verification and Synthesis ['Information Theory', 'Information Theory', 'Numerical Analysis', 'Probability']\n",
      "[ 0.07123768  0.07123768  0.18812746 -0.07850457]\n",
      "Wireless Communications ['Information Theory', 'Information Theory', 'Methodology']\n",
      "[0.3532626  0.35326257 0.12656082]\n",
      "Computer Vision ['Machine Learning', 'Computer Vision and Pattern Recognition']\n",
      "[0.5183859 0.7780858]\n",
      "Machine Learning ['Machine Learning', 'Computer Science and Game Theory']\n",
      "[0.99999994 0.28222772]\n",
      "Formal Verification ['Logic in Computer Science', 'Programming Languages', 'Software Engineering']\n",
      "[0.44768044 0.24127196 0.21337819]\n",
      "Recommender Systems ['Social and Information Networks', 'Multimedia', 'Physics and Society;\\n']\n",
      "[0.46551856 0.22617626 0.1257246 ]\n",
      "Wireless Communications ['Networking and Internet Architecture', 'Information Theory', 'Information Theory']\n",
      "[0.4111072  0.35326254 0.35326254]\n",
      "Machine Learning ['Statistics Theory', 'Computational Geometry', 'Statistics Theory']\n",
      "[0.33608708 0.2863851  0.33608708]\n",
      "Information Retrieval and Web Mining ['Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.38914895 0.09236548]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Network Aggregation and Fault Tolerance ['Information Theory', 'Information Theory']\n",
      "[0.21428254 0.21428253]\n",
      "Data Compression and Coding ['Information Theory', 'Information Theory']\n",
      "[0.41354683 0.41354683]\n",
      "Cryptography ['Cryptography and Security', 'Combinatorics']\n",
      "[0.8977584  0.33500364]\n",
      "Optimization ['Information Theory', 'Information Theory']\n",
      "[0.2888923 0.2888923]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Networking and Internet Architecture', 'Information Theory']\n",
      "[0.33844742 0.42630377 0.33844742]\n",
      "Social Network Analysis ['Machine Learning', 'Computers and Society', 'Physics and Society;\\n', 'Applications']\n",
      "[0.35030344 0.29341877 0.20389494 0.20618878]\n",
      "Optimization Problems in Communication Networks ['Quantum Physics\\n', 'Information Theory', 'Information Theory']\n",
      "[0.08105257 0.33844745 0.33844742]\n",
      "Signal Processing ['Information Theory', 'Information Theory']\n",
      "[0.3976476 0.3976476]\n",
      "Quantum Computing ['Symbolic Computation', 'Artificial Intelligence']\n",
      "[0.38519332 0.35483438]\n",
      "Computational Complexity ['Machine Learning', 'Machine Learning']\n",
      "[0.33507648 0.33507648]\n",
      "Multi-Agent Systems ['Physics and Society;\\n', 'Social and Information Networks']\n",
      "[0.11881068 0.26390854]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Distributed, Parallel, and Cluster Computing', 'Networking and Internet Architecture', 'Information Theory', 'Statistics Theory', 'Applications', 'Statistics Theory']\n",
      "[0.3384474  0.36207846 0.42630374 0.3384474  0.19859512 0.14254461\n",
      " 0.19859512]\n",
      "Data Privacy and Security ['Artificial Intelligence', 'Cryptography and Security']\n",
      "[0.2526285 0.6708385]\n",
      "Recommender Systems ['Information Retrieval', 'Statistical Mechanics;\\n', 'Social and Information Networks']\n",
      "[0.4572588  0.15706871 0.46551856]\n",
      "Model-Driven Engineering ['Neurons and Cognition', 'Artificial Intelligence', 'Neural and Evolutionary Computing']\n",
      "[0.10967047 0.28568178 0.21892303]\n",
      "Information Retrieval ['Computation and Language;\\n', 'Computation and Language']\n",
      "[0.3187556  0.32084054]\n",
      "Information Retrieval ['Artificial Intelligence', 'Machine Learning', 'Machine Learning']\n",
      "[0.4723924 0.5572253 0.5572252]\n",
      "Quantum Computing ['Quantum Physics\\n', 'Information Theory', 'Information Theory']\n",
      "[0.70591336 0.2971276  0.2971276 ]\n",
      "Information Retrieval and Web Mining ['Digital Libraries', 'Human-Computer Interaction']\n",
      "[0.33742106 0.34519693]\n",
      "Computer Science ['Software Engineering', 'Logic in Computer Science', 'Programming Languages']\n",
      "[0.6534238 0.5609798 0.5491707]\n",
      "Optimization ['Data Structures and Algorithms', 'Computational Geometry']\n",
      "[0.37675127 0.39136216]\n",
      "Information Retrieval and Web Mining ['Computational Geometry', 'Databases', 'Data Structures and Algorithms']\n",
      "[0.20008765 0.34951884 0.37188745]\n",
      "Multi-Agent Systems ['Systems and Control', 'Information Theory', 'Information Theory', 'Statistics Theory', 'Statistics Theory']\n",
      "[0.51404405 0.28335097 0.28335097 0.18081272 0.18081267]\n",
      "Neural Networks and Deep Learning ['Computer Vision and Pattern Recognition', 'Machine Learning']\n",
      "[0.48267108 0.53754157]\n",
      "Error Correction Codes ['Neurons and Cognition', 'Human-Computer Interaction']\n",
      "[0.1012707  0.16462438]\n",
      "Control Theory ['Systems and Control', 'Robotics', 'Optimization and Control']\n",
      "[0.7228979  0.30205575 0.59166384]\n",
      "Recommender Systems ['Distributed, Parallel, and Cluster Computing', 'Performance']\n",
      "[0.1782842  0.17012788]\n",
      "Probability Theory and Statistics ['Social and Information Networks', 'Machine Learning', 'Physics and Society;\\n', 'Machine Learning']\n",
      "[0.25552022 0.31702483 0.2617032  0.31702483]\n",
      "Linear Codes and Sphere Decoding ['Information Theory', 'Information Theory']\n",
      "[0.35875127 0.3587513 ]\n",
      "Computational Complexity ['Distributed, Parallel, and Cluster Computing', 'Computational Complexity', 'Data Structures and Algorithms']\n",
      "[0.3940398  1.         0.46037388]\n",
      "Multi-Agent Systems ['Information Theory', 'Information Theory']\n",
      "[0.283351   0.28335097]\n",
      "Machine Learning ['Machine Learning', 'Distributed, Parallel, and Cluster Computing']\n",
      "[1.         0.29831916]\n",
      "Computer Vision ['Computer Vision and Pattern Recognition', 'Computational Geometry']\n",
      "[0.7780858  0.41906238]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Communication Systems and Networks ['Networking and Internet Architecture', 'Statistical Mechanics;\\n']\n",
      "[0.58830416 0.28050905]\n",
      "Recommender Systems ['Statistics and Probability;\\n', 'Information Retrieval']\n",
      "[0.13872747 0.45725882]\n",
      "Computational Complexity ['Systems and Control', 'Optimization and Control']\n",
      "[0.21453828 0.30672348]\n",
      "Computational Complexity ['Machine Learning', 'Machine Learning']\n",
      "[0.33507648 0.33507648]\n",
      "Machine Learning ['Machine Learning', 'Machine Learning']\n",
      "[1. 1.]\n",
      "Clustering and Partitioning ['Discrete Mathematics', 'Data Structures and Algorithms', 'Combinatorics']\n",
      "[0.22535229 0.3888922  0.25824553]\n",
      "Formal Verification ['Computational Complexity', 'Information Theory', 'Information Theory']\n",
      "[0.24771917 0.2186121  0.21861213]\n",
      "Error Correction Codes ['Information Theory', 'Discrete Mathematics', 'Combinatorics', 'Information Theory']\n",
      "[0.17080349 0.10916612 0.18773961 0.17080349]\n",
      "Image Segmentation ['Machine Learning', 'Computer Vision and Pattern Recognition']\n",
      "[0.4214683 0.5134452]\n",
      "Formal Verification ['Logic in Computer Science', 'Artificial Intelligence']\n",
      "[0.4476803  0.26366156]\n",
      "Network Aggregation and Fault Tolerance ['Mathematical Software', 'Computational Engineering, Finance, and Science']\n",
      "[0.1112819  0.12981917]\n",
      "Optimization ['Information Theory', 'Information Theory']\n",
      "[0.2888923 0.2888923]\n",
      "Multi-Agent Systems ['Information Theory', 'Distributed, Parallel, and Cluster Computing', 'Information Theory']\n",
      "[0.28335094 0.35119125 0.28335094]\n",
      "Computational Complexity ['Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.2492548  0.20308487]\n",
      "Graph Colorings ['Artificial Intelligence', 'Data Structures and Algorithms']\n",
      "[0.16186187 0.2547868 ]\n",
      "Natural Language Processing ['Computation and Language', 'Statistics and Probability;\\n', 'Physics and Society;\\n']\n",
      "[0.44363818 0.26139852 0.09696329]\n",
      "Computational Complexity ['Information Theory', 'Data Structures and Algorithms', 'Information Theory']\n",
      "[0.41654167 0.46037382 0.41654167]\n",
      "Information Theory ['Information Theory', 'Information Theory', 'Quantum Physics\\n']\n",
      "[1.0000001  1.0000001  0.31471014]\n",
      "Machine Learning ['Machine Learning', 'Machine Learning']\n",
      "[1. 1.]\n",
      "Multi-Agent Systems ['Applications', 'Robotics']\n",
      "[0.2167636  0.39301866]\n",
      "Social Network Analysis ['Software Engineering', 'Social and Information Networks', 'Adaptation and Self-Organizing Systems', 'Physics and Society;\\n']\n",
      "[0.18211232 0.77010214 0.25229964 0.20389494]\n",
      "Machine Learning ['Social and Information Networks', 'Cryptography and Security', 'Machine Learning']\n",
      "[0.3839411  0.23678832 1.        ]\n",
      "Probability Theory and Statistics ['Information Theory', 'Information Theory']\n",
      "[0.50418735 0.5041874 ]\n",
      "Data Privacy and Security ['Computers and Society', 'Cryptography and Security']\n",
      "[0.33107522 0.6708385 ]\n",
      "Computational Complexity ['Artificial Intelligence', 'Computation and Language', 'Machine Learning']\n",
      "[0.38657445 0.57079107 0.33507642]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Natural Language Processing ['Neural and Evolutionary Computing', 'Computation and Language', 'Machine Learning']\n",
      "[0.21377204 0.44363815 0.48167008]\n",
      "Neural Networks and Deep Learning ['Machine Learning', 'Artificial Intelligence', 'Machine Learning']\n",
      "[0.5375415 0.5080295 0.5375415]\n",
      "Data Privacy and Security ['Computer Science and Game Theory', 'Statistical Mechanics;\\n', 'Multiagent Systems']\n",
      "[0.14716755 0.20073459 0.15883447]\n",
      "Computational Complexity ['Artificial Intelligence', 'Information Theory', 'Information Theory', 'Adaptation and Self-Organizing Systems']\n",
      "[0.38657436 0.41654164 0.41654164 0.29239985]\n",
      "Probability Theory and Statistics ['Information Theory', 'Machine Learning', 'Information Theory']\n",
      "[0.50418735 0.3170249  0.50418735]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Recommender Systems ['Information Retrieval', 'Machine Learning', 'Social and Information Networks']\n",
      "[0.4572588  0.39248258 0.46551856]\n",
      "Signal Processing ['Information Theory', 'Information Theory']\n",
      "[0.3976476 0.3976476]\n",
      "Machine Learning ['Machine Learning', 'Machine Learning']\n",
      "[1. 1.]\n",
      "Computational Complexity ['Numerical Analysis', 'Numerical Analysis']\n",
      "[0.36237565 0.36237562]\n",
      "Network Security ['Cryptography and Security', 'Artificial Intelligence']\n",
      "[0.56298715 0.22485591]\n",
      "Natural Language Processing ['Computation and Language;\\n', 'Computation and Language']\n",
      "[0.41095552 0.44363815]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Face Verification ['Information Theory', 'Information Theory', 'Optimization and Control']\n",
      "[0.20180786 0.20180787 0.18053445]\n",
      "Optimization ['Computer Vision and Pattern Recognition', 'Data Structures and Algorithms']\n",
      "[0.28733638 0.37675136]\n",
      "Machine Learning ['Artificial Intelligence', 'Machine Learning']\n",
      "[0.7034626 1.       ]\n",
      "Graph Colorings ['Combinatorics', 'Discrete Mathematics']\n",
      "[0.28778562 0.28458762]\n",
      "Image Segmentation ['Computer Vision and Pattern Recognition', 'Artificial Intelligence']\n",
      "[0.5134452  0.35724697]\n",
      "Community Detection in Networks ['Physics and Society;\\n', 'Social and Information Networks', 'Statistics and Probability;\\n']\n",
      "[0.15823947 0.45789096 0.16344272]\n",
      "Natural Language Processing ['Computation and Language', 'Artificial Intelligence']\n",
      "[0.44363818 0.42930526]\n",
      "Statistical Process Control ['Systems and Control', 'Logic in Computer Science', 'Performance']\n",
      "[0.43976912 0.21230157 0.2483107 ]\n",
      "Formal Verification ['Cryptography and Security', 'Logic in Computer Science']\n",
      "[0.27957195 0.44768032]\n",
      "Formal Verification ['Combinatorics', 'Information Theory', 'Information Theory']\n",
      "[0.18436034 0.21861213 0.21861212]\n",
      "Data Mining ['Computers and Society', 'Artificial Intelligence']\n",
      "[0.26161274 0.5463269 ]\n",
      "Database Management ['Databases', 'Information Retrieval']\n",
      "[0.80001676 0.4099659 ]\n",
      "Optimization ['Optimization and Control', 'Systems and Control']\n",
      "[0.8223881  0.28561252]\n",
      "Data Privacy and Security ['Cryptography and Security', 'Networking and Internet Architecture']\n",
      "[0.6708386  0.22850592]\n",
      "Computational Complexity ['Machine Learning', 'Machine Learning']\n",
      "[0.33507648 0.33507648]\n",
      "Formal Verification ['Cryptography and Security', 'Information Theory', 'Information Theory']\n",
      "[0.27957195 0.21861212 0.2186121 ]\n",
      "Cryptography ['Cryptography and Security', 'Number Theory']\n",
      "[0.8977584  0.34691626]\n",
      "Information Theory ['Information Theory', 'Machine Learning', 'Information Theory', 'Machine Learning']\n",
      "[1.         0.41611207 1.         0.41611207]\n",
      "Graph Algorithms ['Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.4969952 0.1274706]\n",
      "Optimization ['Data Structures and Algorithms', 'Discrete Mathematics', 'Networking and Internet Architecture']\n",
      "[0.37675124 0.2751247  0.20750132]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Clustering and Partitioning ['Physics and Society;\\n', 'Social and Information Networks', 'Statistics and Probability;\\n']\n",
      "[0.07749234 0.23660327 0.11507352]\n",
      "Optimization ['Combinatorics', 'Discrete Mathematics']\n",
      "[0.34130025 0.27512473]\n",
      "Error Correction Codes ['Information Theory', 'Information Theory', 'Quantum Physics\\n']\n",
      "[ 0.17080347  0.17080347 -0.00048776]\n",
      "Formal Methods for System Verification and Synthesis ['Distributed, Parallel, and Cluster Computing', 'Performance']\n",
      "[0.15346166 0.08258042]\n",
      "Computational Complexity ['Combinatorics', 'Discrete Mathematics']\n",
      "[0.33335117 0.37189886]\n",
      "Economics and Machine Learning ['Cryptography and Security', 'Computers and Society']\n",
      "[0.24356727 0.2790792 ]\n",
      "Data Privacy and Security ['Computer Vision and Pattern Recognition', 'Information Retrieval']\n",
      "[0.2574031  0.33642057]\n",
      "Computational Complexity ['Physics and Society;\\n', 'Social and Information Networks']\n",
      "[0.20308483 0.2492548 ]\n",
      "Multi-Agent Systems ['Multiagent Systems', 'Artificial Intelligence']\n",
      "[0.82243615 0.42438734]\n",
      "Data Privacy and Security ['Information Theory', 'Information Theory']\n",
      "[0.4184546  0.41845462]\n",
      "Data Privacy and Security ['Networking and Internet Architecture', 'Distributed, Parallel, and Cluster Computing']\n",
      "[0.22850597 0.21699373]\n",
      "Computational Complexity ['Computational Complexity', 'Neural and Evolutionary Computing']\n",
      "[1.         0.38221657]\n",
      "Natural Language Processing ['Information Retrieval', 'Databases', 'Distributed, Parallel, and Cluster Computing']\n",
      "[0.5049391  0.24699439 0.1890484 ]\n",
      "Optimization ['Logic in Computer Science', 'Formal Languages and Automata Theory']\n",
      "[0.19356877 0.05226499]\n",
      "Graph Algorithms ['Machine Learning', 'Artificial Intelligence']\n",
      "[0.37006712 0.30208018]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Computational Complexity ['Artificial Intelligence', 'Distributed, Parallel, and Cluster Computing']\n",
      "[0.38657442 0.3940398 ]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Multi-Armed Bandit Problems ['Computational Geometry', 'Discrete Mathematics', 'Combinatorics']\n",
      "[0.07984528 0.19186555 0.3011458 ]\n",
      "Machine Learning ['Machine Learning', 'Computational Geometry', 'Machine Learning']\n",
      "[1.        0.2863851 1.       ]\n",
      "Computational Complexity ['Computer Science and Game Theory', 'Computational Complexity', 'Multiagent Systems']\n",
      "[0.46683413 1.0000001  0.20784487]\n",
      "Computational Complexity ['Combinatorics', 'Computational Geometry']\n",
      "[0.33335117 0.47332916]\n",
      "Recommender Systems ['Databases', 'Artificial Intelligence']\n",
      "[0.3327628 0.3039413]\n",
      "Probability Theory and Statistics ['Machine Learning', 'Information Theory', 'Information Theory']\n",
      "[0.31702483 0.5041874  0.50418735]\n",
      "Multi-Agent Systems ['Information Theory', 'Information Theory']\n",
      "[0.283351   0.28335097]\n",
      "Formal Verification ['Programming Languages', 'Logic in Computer Science', 'Software Engineering']\n",
      "[0.24127199 0.44768038 0.21337819]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Model-Driven Engineering ['Adaptation and Self-Organizing Systems', 'Computers and Society', 'Physics and Society;\\n']\n",
      "[0.26149982 0.11744802 0.10376164]\n",
      "Information Retrieval ['Artificial Intelligence', 'Information Retrieval']\n",
      "[0.4723924 1.0000001]\n",
      "Computational Complexity ['Formal Languages and Automata Theory', 'Computational Complexity']\n",
      "[0.2967027 1.0000001]\n",
      "Recommender Systems ['Information Retrieval', 'Machine Learning', 'Machine Learning']\n",
      "[0.45725873 0.3924826  0.39248255]\n",
      "Graph Colorings ['Combinatorics', 'Discrete Mathematics', 'Probability']\n",
      "[0.28778562 0.28458753 0.0837433 ]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Social Network Analysis ['Social and Information Networks', 'Computers and Society']\n",
      "[0.7701023 0.2934187]\n",
      "Information Theory ['Machine Learning', 'Machine Learning']\n",
      "[0.41611218 0.41611215]\n",
      "Network Security ['Cryptography and Security', 'Neural and Evolutionary Computing', 'Networking and Internet Architecture']\n",
      "[0.56298715 0.0904116  0.5123005 ]\n",
      "Computational Complexity ['Machine Learning', 'Information Theory', 'Machine Learning', 'Information Theory']\n",
      "[0.33507648 0.41654164 0.33507648 0.41654164]\n",
      "Computational Complexity ['Computational Geometry', 'Distributed, Parallel, and Cluster Computing', 'Discrete Mathematics', 'Data Structures and Algorithms']\n",
      "[0.4733292  0.39403978 0.37189886 0.4603738 ]\n",
      "Communication Systems and Networks ['Physics and Society;\\n', 'Computers and Society', 'Social and Information Networks', 'Adaptation and Self-Organizing Systems']\n",
      "[0.31101972 0.48454064 0.50649977 0.33413738]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Machine Learning ['Artificial Intelligence', 'Computation and Language']\n",
      "[0.70346254 0.34107947]\n",
      "Clustering and Partitioning ['Computational Geometry', 'Discrete Mathematics']\n",
      "[0.26879826 0.22535229]\n",
      "Network Security ['Computer Science and Game Theory', 'Systems and Control']\n",
      "[0.21837085 0.24828832]\n",
      "Computational Complexity ['Statistics Theory', 'Information Theory', 'Information Theory', 'Machine Learning', 'Statistics Theory']\n",
      "[0.30166578 0.41654164 0.41654164 0.3350765  0.30166575]\n",
      "Linear Codes and Sphere Decoding ['Information Theory', 'Information Theory']\n",
      "[0.35875127 0.3587513 ]\n",
      "Probability Theory and Statistics ['Artificial Intelligence', 'Logic in Computer Science']\n",
      "[0.29543245 0.2528268 ]\n",
      "Machine Learning ['Computer Vision and Pattern Recognition', 'Robotics', 'Systems and Control']\n",
      "[0.49303263 0.3568682  0.31266233]\n",
      "Data Privacy and Security ['Information Theory', 'Cryptography and Security', 'Information Theory']\n",
      "[0.4184546 0.6708386 0.4184546]\n",
      "Graph Algorithms ['Information Theory', 'Statistical Mechanics;\\n', 'Information Theory', 'Quantum Physics\\n']\n",
      "[0.26934505 0.20907772 0.26934505 0.13826904]\n",
      "Optimization ['Numerical Analysis', 'Numerical Analysis']\n",
      "[0.44985604 0.44985607]\n",
      "Error Correction Codes ['Information Theory', 'Information Theory']\n",
      "[0.17080347 0.17080347]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Economics and Machine Learning ['Computer Science and Game Theory', 'Data Structures and Algorithms']\n",
      "[0.3746171 0.2779327]\n",
      "Multi-Agent Systems ['Optimization and Control', 'Information Theory', 'Information Theory']\n",
      "[0.3339963  0.28335094 0.28335094]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Machine Learning ['Machine Learning', 'Machine Learning']\n",
      "[1. 1.]\n",
      "Information Theory ['Information Theory', 'Computation and Language', 'Social and Information Networks', 'Information Theory', 'Statistics and Probability;\\n']\n",
      "[0.99999994 0.33948606 0.406737   0.99999994 0.27309594]\n",
      "Optimization ['Databases', 'Artificial Intelligence']\n",
      "[0.19094953 0.42053193]\n",
      "Computational Complexity ['Information Theory', 'Combinatorics', 'Information Theory']\n",
      "[0.41654158 0.3333512  0.41654158]\n",
      "Formal Methods for System Verification and Synthesis ['Distributed, Parallel, and Cluster Computing', 'Databases']\n",
      "[0.15346166 0.11125331]\n",
      "Formal Verification ['Systems and Control', 'Formal Languages and Automata Theory']\n",
      "[0.1807869 0.512061 ]\n",
      "Optimization Problems in Communication Networks ['Quantum Physics\\n', 'Information Theory', 'Information Theory']\n",
      "[0.08105257 0.33844745 0.33844742]\n",
      "Error Correction Codes ['Information Theory', 'Information Theory']\n",
      "[0.17080347 0.17080347]\n",
      "Combinatorics ['Discrete Mathematics', 'Information Theory', 'Information Theory']\n",
      "[0.6246265  0.22386003 0.22386001]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Data Privacy and Security ['Information Theory', 'Information Theory']\n",
      "[0.4184546  0.41845462]\n",
      "Network Aggregation and Fault Tolerance ['Information Theory', 'Information Theory']\n",
      "[0.21428254 0.21428253]\n",
      "Natural Language Processing ['Computation and Language', 'Information Retrieval', 'Machine Learning', 'Neural and Evolutionary Computing', 'Machine Learning']\n",
      "[0.44363815 0.50493914 0.48167008 0.21377204 0.48167008]\n",
      "Computational Complexity ['Formal Languages and Automata Theory', 'Logic in Computer Science']\n",
      "[0.2967027 0.4083495]\n",
      "Multi-Agent Systems ['Computer Science and Game Theory', 'Multiagent Systems']\n",
      "[0.40472355 0.82243603]\n",
      "Computational Complexity ['Symbolic Computation', 'Mathematical Software']\n",
      "[0.50227493 0.32603467]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Distributed, Parallel, and Cluster Computing', 'Machine Learning']\n",
      "[0.46037388 0.3940398  0.3350765 ]\n",
      "Optimization ['Probability', 'Performance']\n",
      "[0.17807232 0.43510923]\n",
      "Data Privacy and Security ['Information Retrieval', 'Social and Information Networks']\n",
      "[0.33642054 0.39779714]\n",
      "Optimization ['Machine Learning', 'Machine Learning']\n",
      "[0.4733091  0.47330916]\n",
      "Computational Complexity ['Information Theory', 'Machine Learning', 'Information Theory', 'Machine Learning']\n",
      "[0.41654164 0.33507648 0.41654164 0.33507648]\n",
      "Information Retrieval and Web Mining ['Computers and Society', 'Human-Computer Interaction']\n",
      "[0.19917992 0.34519693]\n",
      "Data Privacy and Security ['Machine Learning', 'Artificial Intelligence', 'Machine Learning']\n",
      "[0.31817892 0.25262848 0.31817892]\n",
      "Computational Complexity ['Machine Learning', 'Artificial Intelligence', 'Optimization and Control']\n",
      "[0.33507642 0.38657442 0.30672348]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Combinatorics ['Discrete Mathematics', 'Computational Complexity']\n",
      "[0.6246265  0.33335117]\n",
      "Optimization ['Information Theory', 'Statistical Mechanics;\\n', 'Information Theory', 'Statistics Theory', 'Statistics Theory']\n",
      "[0.28889233 0.32522905 0.28889233 0.26912016 0.26912016]\n",
      "Multi-Agent Systems ['Distributed, Parallel, and Cluster Computing', 'Networking and Internet Architecture', 'Performance']\n",
      "[0.3511912  0.30660185 0.14103237]\n",
      "Statistical Process Control ['Machine Learning', 'Machine Learning']\n",
      "[0.33011797 0.33011794]\n",
      "Optimization ['Discrete Mathematics', 'Data Structures and Algorithms', 'Combinatorics']\n",
      "[0.27512473 0.3767513  0.34130025]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Multi-Agent Systems ['Statistical Mechanics;\\n', 'Computation and Language', 'Physics and Society;\\n']\n",
      "[0.23417293 0.3071532  0.11881063]\n",
      "Graph Algorithms ['Statistics Theory', 'Machine Learning', 'Machine Learning', 'Statistics Theory']\n",
      "[0.22232166 0.3700671  0.3700671  0.22232166]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Signal Processing ['Numerical Analysis', 'Information Theory', 'Information Theory']\n",
      "[0.3260119 0.3976476 0.3976476]\n",
      "Computational Complexity ['Information Theory', 'Machine Learning', 'Information Theory']\n",
      "[0.4165416  0.33507648 0.4165416 ]\n",
      "Computer Science ['Mathematical Software', 'Quantum Physics\\n']\n",
      "[0.40204984 0.26823202]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Computational Complexity ['Disordered Systems and Neural Networks;\\n', 'Statistical Mechanics;\\n', 'Information Theory', 'Information Theory']\n",
      "[0.31716302 0.27503383 0.41654158 0.41654158]\n",
      "Computer Science ['Programming Languages', 'Software Engineering']\n",
      "[0.5491708 0.6534238]\n",
      "Graph Colorings ['Distributed, Parallel, and Cluster Computing', 'Data Structures and Algorithms']\n",
      "[0.24615471 0.25478685]\n",
      "Wireless Communications ['Information Theory', 'Networking and Internet Architecture', 'Information Theory']\n",
      "[0.35326254 0.41110715 0.35326254]\n",
      "Theoretical Computer Science ['Programming Languages', 'Distributed, Parallel, and Cluster Computing']\n",
      "[0.4847398 0.4260668]\n",
      "Database Management ['Artificial Intelligence', 'Information Retrieval']\n",
      "[0.2920927 0.4099659]\n",
      "Computational Complexity ['Computer Science and Game Theory', 'Data Structures and Algorithms']\n",
      "[0.46683413 0.46037382]\n",
      "Probability Theory and Statistics ['Optimization and Control', 'Systems and Control', 'Statistics Theory', 'Statistics Theory']\n",
      "[0.14308542 0.19296665 0.8752098  0.8752098 ]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Machine Learning ['Machine Learning', 'Artificial Intelligence', 'Machine Learning']\n",
      "[1.        0.7034626 1.       ]\n",
      "Formal Verification ['Digital Libraries', 'Information Retrieval']\n",
      "[0.13215753 0.1911232 ]\n",
      "Formal Methods for System Verification and Synthesis ['Software Engineering', 'Programming Languages']\n",
      "[0.27049485 0.30221295]\n",
      "Graph Algorithms ['Data Structures and Algorithms', 'Discrete Mathematics', 'Computer Science and Game Theory', 'Combinatorics', 'Probability']\n",
      "[0.58960474 0.3650342  0.2510843  0.3327937  0.10773227]\n",
      "Machine Learning ['Machine Learning', 'Machine Learning']\n",
      "[1. 1.]\n",
      "Formal Verification ['Computer Science and Game Theory', 'Computational Complexity']\n",
      "[0.13367857 0.2477192 ]\n",
      "Multi-Agent Systems ['Machine Learning', 'Artificial Intelligence']\n",
      "[0.22389694 0.42438722]\n",
      "Information Theory ['Information Theory', 'Information Theory']\n",
      "[1.0000001 1.0000001]\n",
      "Clustering and Partitioning ['Information Theory', 'Information Theory']\n",
      "[0.26457828 0.26457828]\n",
      "Data Privacy and Security ['Distributed, Parallel, and Cluster Computing', 'Computational Engineering, Finance, and Science']\n",
      "[0.2169937  0.17377907]\n",
      "Social Network Analysis ['Human-Computer Interaction', 'Computers and Society', 'Social and Information Networks']\n",
      "[0.24795608 0.29341874 0.77010226]\n",
      "Computational Complexity ['Logic in Computer Science', 'Formal Languages and Automata Theory']\n",
      "[0.40834957 0.29670274]\n",
      "Clustering and Partitioning ['Machine Learning', 'Computers and Society']\n",
      "[0.33123404 0.17626503]\n",
      "Optimization ['Machine Learning', 'Optimization and Control']\n",
      "[0.4733091 0.8223881]\n",
      "Database Management ['Databases', 'Data Structures and Algorithms']\n",
      "[0.8000168 0.3729004]\n",
      "Optimization ['Information Theory', 'Information Theory']\n",
      "[0.2888923 0.2888923]\n",
      "Quantum Computing ['Quantum Physics\\n', 'Distributed, Parallel, and Cluster Computing']\n",
      "[0.7059133 0.3737339]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Machine Learning ['Systems and Control', 'Machine Learning']\n",
      "[0.3126624 1.       ]\n",
      "Multi-Agent Systems ['Social and Information Networks', 'Networking and Internet Architecture']\n",
      "[0.26390857 0.3066018 ]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Computational Engineering, Finance, and Science']\n",
      "[0.46037388 0.40324903]\n",
      "Formal Verification ['Logic in Computer Science', 'Artificial Intelligence']\n",
      "[0.4476803  0.26366156]\n",
      "Computational Complexity ['Machine Learning', 'Machine Learning']\n",
      "[0.33507648 0.33507648]\n",
      "Multi-Agent Systems ['Artificial Intelligence', 'Machine Learning', 'Systems and Control', 'Machine Learning']\n",
      "[0.4243873  0.22389688 0.51404405 0.22389688]\n",
      "Machine Learning ['Machine Learning', 'Artificial Intelligence', 'Computers and Society']\n",
      "[0.99999994 0.70346266 0.31537503]\n",
      "Probability Theory and Statistics ['Information Theory', 'Information Theory']\n",
      "[0.50418735 0.5041874 ]\n",
      "Optimization ['Optimization and Control', 'Systems and Control', 'Physics and Society;\\n']\n",
      "[0.82238805 0.2856125  0.11647312]\n",
      "Computational Complexity ['Computational Complexity', 'Symbolic Computation']\n",
      "[1.        0.5022749]\n",
      "Computational Complexity ['Combinatorics', 'Formal Languages and Automata Theory']\n",
      "[0.33335117 0.29670274]\n",
      "Formal Verification ['Discrete Mathematics', 'Computational Complexity', 'Logic in Computer Science']\n",
      "[0.29028994 0.24771923 0.44768044]\n",
      "Data Compression and Coding ['Information Theory', 'Information Theory']\n",
      "[0.41354683 0.41354683]\n",
      "Computer Science ['Cryptography and Security', 'Human-Computer Interaction']\n",
      "[0.2884209  0.44028866]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Model-Driven Engineering ['Computational Engineering, Finance, and Science', 'Computers and Society']\n",
      "[0.3704335  0.11744805]\n",
      "Combinatorics ['Formal Languages and Automata Theory', 'Combinatorics']\n",
      "[0.16925529 1.        ]\n",
      "Optimization ['Optimization and Control', 'Artificial Intelligence', 'Systems and Control']\n",
      "[0.822388   0.42053193 0.28561252]\n",
      "Machine Learning ['Machine Learning', 'Machine Learning']\n",
      "[1. 1.]\n",
      "Combinatorics ['Discrete Mathematics', 'Data Structures and Algorithms', 'Combinatorics']\n",
      "[0.6246265  0.22967088 0.99999994]\n",
      "Community Detection in Networks ['Social and Information Networks', 'Statistical Mechanics;\\n', 'Physics and Society;\\n']\n",
      "[0.45789096 0.21462229 0.15823947]\n",
      "Probability Theory and Statistics ['Discrete Mathematics', 'Statistics and Probability;\\n']\n",
      "[0.34691387 0.84135514]\n",
      "Optimization ['Information Theory', 'Information Theory']\n",
      "[0.2888923 0.2888923]\n",
      "Graph Algorithms ['Artificial Intelligence', 'Machine Learning', 'Logic']\n",
      "[0.30208015 0.37006715 0.21517165]\n",
      "Computational Complexity ['Machine Learning', 'Information Theory', 'Machine Learning', 'Information Theory']\n",
      "[0.33507648 0.41654164 0.33507648 0.41654164]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Database Management ['Databases', 'Data Structures and Algorithms']\n",
      "[0.8000168 0.3729004]\n",
      "Control Theory ['Optimization and Control', 'Robotics']\n",
      "[0.59166384 0.30205575]\n",
      "Information Retrieval ['Artificial Intelligence', 'Digital Libraries', 'Machine Learning']\n",
      "[0.4723924 0.4020483 0.5572252]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Data Privacy and Security ['Quantum Physics\\n', 'Cryptography and Security']\n",
      "[0.18487112 0.6708385 ]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Natural Language Processing ['Information Retrieval', 'Computation and Language']\n",
      "[0.50493896 0.44363815]\n",
      "Communication Systems and Networks ['Cryptography and Security', 'Multimedia']\n",
      "[0.4399781  0.29701805]\n",
      "Theoretical Computer Science ['Networking and Internet Architecture', 'Distributed, Parallel, and Cluster Computing', 'Performance']\n",
      "[0.24904063 0.4260668  0.2942757 ]\n",
      "Computational Complexity ['Logic in Computer Science', 'Data Structures and Algorithms']\n",
      "[0.4083495  0.46037382]\n",
      "Natural Language Processing ['Computation and Language;\\n', 'Computation and Language']\n",
      "[0.41095552 0.44363815]\n",
      "Wiretap Channel and Lattice Coset Encoding ['Information Theory', 'Information Theory']\n",
      "[0.27901918 0.27901918]\n",
      "Multi-Agent Systems ['Cryptography and Security', 'Distributed, Parallel, and Cluster Computing']\n",
      "[0.2012877  0.35119125]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Discrete Mathematics']\n",
      "[0.46037382 0.37189886]\n",
      "Formal Methods for System Verification and Synthesis ['Programming Languages', 'Logic in Computer Science']\n",
      "[0.30221298 0.3778266 ]\n",
      "Combinatorics ['Data Structures and Algorithms', 'Artificial Intelligence', 'Combinatorics', 'Optimization and Control']\n",
      "[0.22967088 0.3213009  0.99999994 0.19882944]\n",
      "Machine Learning ['Artificial Intelligence', 'Digital Libraries']\n",
      "[0.7034626 0.2743223]\n",
      "Computational Complexity ['Artificial Intelligence', 'Symbolic Computation']\n",
      "[0.3865744 0.5022749]\n",
      "Error Correction Codes ['Information Theory', 'Information Theory']\n",
      "[0.17080347 0.17080347]\n",
      "Social Network Analysis ['Computers and Society', 'Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.29341874 0.77010214 0.20389493]\n",
      "Formal Verification ['Logic in Computer Science', 'Numerical Analysis', 'Systems and Control']\n",
      "[0.44768044 0.22000562 0.18078691]\n",
      "Anomaly Detection in Time Series ['Information Theory', 'Information Theory']\n",
      "[0.25409868 0.25409868]\n",
      "Computational Complexity ['Artificial Intelligence', 'Programming Languages']\n",
      "[0.3865744 0.3488866]\n",
      "Multi-Agent Systems ['Optimization and Control', 'Systems and Control']\n",
      "[0.33399633 0.5140441 ]\n",
      "Formal Verification ['Logic in Computer Science', 'Distributed, Parallel, and Cluster Computing', 'Programming Languages']\n",
      "[0.44768038 0.13157766 0.24127199]\n",
      "Machine Learning ['Machine Learning', 'Machine Learning']\n",
      "[1. 1.]\n",
      "Computer Vision ['Computer Vision and Pattern Recognition', 'Human-Computer Interaction']\n",
      "[0.7780858  0.54375213]\n",
      "Error Correction Codes ['Information Theory', 'Information Theory']\n",
      "[0.17080347 0.17080347]\n",
      "Quantum Computing ['Quantum Physics\\n', 'Computational Complexity', 'Number Theory']\n",
      "[0.70591336 0.43557793 0.18176194]\n",
      "Communication Systems and Networks ['Computer Science and Game Theory', 'Artificial Intelligence']\n",
      "[0.34490293 0.3779028 ]\n",
      "Formal Verification ['Artificial Intelligence', 'Databases', 'Logic in Computer Science']\n",
      "[0.2636615  0.19510743 0.44768044]\n",
      "Statistical Process Control ['Artificial Intelligence', 'Systems and Control']\n",
      "[0.2998149  0.43976912]\n",
      "Multi-Agent Systems ['Physics and Society;\\n', 'Social and Information Networks']\n",
      "[0.11881068 0.26390854]\n",
      "Text Mining and Visualization ['Computation and Language', 'Artificial Intelligence', 'Multimedia', 'Machine Learning']\n",
      "[0.30528876 0.3085715  0.14521097 0.40640467]\n",
      "Recommender Systems ['Information Retrieval', 'Artificial Intelligence', 'Computation and Language']\n",
      "[0.45725876 0.30394134 0.15018341]\n",
      "Wireless Communications ['Networking and Internet Architecture', 'Systems and Control']\n",
      "[0.41110715 0.19756095]\n",
      "Information Theory ['Information Theory', 'Information Theory', 'Probability', 'Statistics Theory', 'Statistics Theory']\n",
      "[1.         1.         0.18611415 0.62427056 0.62427056]\n",
      "Formal Verification ['Logic', 'Logic in Computer Science']\n",
      "[0.36653668 0.44768032]\n",
      "Computational Complexity ['Systems and Control', 'Numerical Analysis', 'Optimization and Control']\n",
      "[0.2145383  0.36237562 0.30672348]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Networking and Internet Architecture', 'Information Theory']\n",
      "[0.33844742 0.42630377 0.33844742]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Optimization ['Data Structures and Algorithms', 'Discrete Mathematics', 'Machine Learning']\n",
      "[0.37675124 0.2751247  0.4733091 ]\n",
      "Machine Learning ['Machine Learning', 'Artificial Intelligence', 'Databases', 'Machine Learning']\n",
      "[1.         0.7034625  0.39245403 1.        ]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Discrete Mathematics']\n",
      "[0.46037382 0.37189886]\n",
      "Computational Complexity ['Logic in Computer Science', 'Artificial Intelligence']\n",
      "[0.4083495  0.38657445]\n",
      "Robotics and Artificial Intelligence ['Computer Vision and Pattern Recognition', 'Systems and Control', 'Optimization and Control']\n",
      "[0.49189913 0.45275363 0.4200884 ]\n",
      "Game Theory ['Artificial Intelligence', 'Computer Science and Game Theory']\n",
      "[0.41797116 0.8326239 ]\n",
      "Machine Learning ['Computation and Language', 'Neural and Evolutionary Computing', 'Machine Learning']\n",
      "[0.3410795  0.36408737 1.        ]\n",
      "Machine Learning ['Machine Learning', 'Machine Learning']\n",
      "[1. 1.]\n",
      "Multi-Agent Systems ['Physics and Society;\\n', 'Social and Information Networks']\n",
      "[0.11881068 0.26390854]\n",
      "Computational Complexity ['Optimization and Control', 'Discrete Mathematics', 'Social and Information Networks', 'Systems and Control', 'Physics and Society;\\n']\n",
      "[0.30672348 0.37189883 0.24925482 0.2145383  0.20308481]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Probability Theory and Statistics ['Information Theory', 'Information Theory']\n",
      "[0.50418735 0.5041874 ]\n",
      "Graph Algorithms ['Information Theory', 'Information Theory']\n",
      "[0.269345 0.269345]\n",
      "Formal Verification ['Programming Languages', 'Software Engineering']\n",
      "[0.24127197 0.21337816]\n",
      "Information Theory ['Information Theory', 'Information Retrieval', 'Machine Learning', 'Information Theory']\n",
      "[1.         0.46929795 0.41611207 1.        ]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Computational Complexity']\n",
      "[0.46037382 1.0000001 ]\n",
      "Social Network Analysis ['Computers and Society', 'Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.29341874 0.77010214 0.20389493]\n",
      "Optimization ['Optimization and Control', 'Machine Learning']\n",
      "[0.8223881  0.47330916]\n",
      "Graph Algorithms ['Computer Vision and Pattern Recognition', 'Neural and Evolutionary Computing']\n",
      "[0.24159461 0.31030157]\n",
      "Computational Complexity ['Robotics', 'Systems and Control']\n",
      "[0.21623877 0.21453828]\n",
      "Communication Systems and Networks ['Adaptation and Self-Organizing Systems', 'Artificial Intelligence', 'Physics and Society;\\n']\n",
      "[0.33413735 0.37790275 0.31101963]\n",
      "Computational Complexity ['Numerical Analysis', 'Computational Engineering, Finance, and Science']\n",
      "[0.3623756  0.40324903]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Networking and Internet Architecture', 'Information Theory']\n",
      "[0.33844742 0.42630377 0.33844742]\n",
      "Data Privacy and Security ['Cryptography and Security', 'Neural and Evolutionary Computing']\n",
      "[0.6708386  0.13396712]\n",
      "Computational Complexity ['Neural and Evolutionary Computing', 'Artificial Intelligence']\n",
      "[0.38221654 0.38657445]\n",
      "Combinatorics ['Information Theory', 'Combinatorics', 'Information Theory']\n",
      "[0.22385998 1.0000001  0.22385998]\n",
      "Computational Complexity ['Number Theory', 'Data Structures and Algorithms']\n",
      "[0.21169521 0.46037382]\n",
      "Machine Learning ['Machine Learning', 'Information Retrieval', 'Machine Learning']\n",
      "[1.        0.5572251 1.       ]\n",
      "Image Segmentation ['Computer Vision and Pattern Recognition', 'Numerical Analysis']\n",
      "[0.5134452  0.30885312]\n",
      "Computational Complexity ['Computational Complexity', 'Computer Science and Game Theory']\n",
      "[1.         0.46683422]\n",
      "Machine Learning ['Machine Learning', 'Machine Learning']\n",
      "[1. 1.]\n",
      "Formal Verification ['Logic in Computer Science', 'Programming Languages']\n",
      "[0.4476803  0.24127202]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Data Compression and Coding ['Information Theory', 'Information Theory']\n",
      "[0.41354683 0.41354683]\n",
      "Mobile Computing ['Computers and Society', 'Human-Computer Interaction', 'Machine Learning']\n",
      "[0.41275057 0.40769976 0.2942381 ]\n",
      "Probability Theory and Statistics ['Machine Learning', 'Statistics Theory', 'Machine Learning', 'Statistics Theory']\n",
      "[0.31702483 0.8752097  0.31702483 0.8752097 ]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Machine Learning ['Computer Vision and Pattern Recognition', 'Multimedia']\n",
      "[0.49303254 0.30207378]\n",
      "Wireless Communications ['Networking and Internet Architecture', 'Performance']\n",
      "[0.41110715 0.15994078]\n",
      "Machine Learning ['Machine Learning', 'Machine Learning']\n",
      "[1. 1.]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Clustering and Partitioning ['Machine Learning', 'Machine Learning']\n",
      "[0.33123413 0.33123413]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Systems and Control', 'Information Theory', 'Information Theory']\n",
      "[0.21624924 0.1862685  0.1862685 ]\n",
      "Computational Complexity ['Logic in Computer Science', 'Combinatorics', 'Logic']\n",
      "[0.40834957 0.33335117 0.2633605 ]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Machine Learning', 'Machine Learning']\n",
      "[0.46037382 0.33507648 0.33507645]\n",
      "Information Retrieval ['Computation and Language', 'Information Retrieval', 'Machine Learning']\n",
      "[0.32084054 1.0000001  0.5572252 ]\n",
      "Computational Complexity ['Logic in Computer Science', 'Data Structures and Algorithms']\n",
      "[0.4083495  0.46037382]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Mobile Computing ['Human-Computer Interaction', 'Computers and Society']\n",
      "[0.40769973 0.41275048]\n",
      "Optimization ['Information Theory', 'Information Theory']\n",
      "[0.2888923 0.2888923]\n",
      "Probability Theory and Statistics ['Artificial Intelligence', 'Machine Learning']\n",
      "[0.29543245 0.3170249 ]\n",
      "Computational Complexity ['Optimization and Control', 'Computational Complexity']\n",
      "[0.30672348 1.0000001 ]\n",
      "Signal Processing ['Information Theory', 'Information Theory']\n",
      "[0.3976476 0.3976476]\n",
      "Optimization ['Machine Learning', 'Computer Vision and Pattern Recognition', 'Machine Learning']\n",
      "[0.4733091  0.28733632 0.4733091 ]\n",
      "Formal Methods for System Verification and Synthesis ['Logic in Computer Science', 'Programming Languages']\n",
      "[0.37782663 0.30221295]\n",
      "Computational Complexity ['Quantum Physics\\n', 'Computational Complexity']\n",
      "[0.2670706 1.0000001]\n",
      "Cryptography ['Cryptography and Security', 'Information Theory', 'Information Theory']\n",
      "[0.8977584  0.43407765 0.43407765]\n",
      "Statistical Process Control ['Artificial Intelligence', 'Neural and Evolutionary Computing']\n",
      "[0.2998149  0.24823588]\n",
      "Network Security ['Social and Information Networks', 'Networking and Internet Architecture']\n",
      "[0.26505205 0.5123006 ]\n",
      "Mobile Computing ['Software Engineering', 'Computers and Society']\n",
      "[0.27771026 0.41275048]\n",
      "Information Retrieval and Web Mining ['Information Retrieval', 'Artificial Intelligence']\n",
      "[0.77973634 0.35386792]\n",
      "Optimization ['Information Theory', 'Computer Science and Game Theory', 'Information Theory', 'Optimization and Control', 'Adaptation and Self-Organizing Systems']\n",
      "[0.28889236 0.2651282  0.28889236 0.8223881  0.3209272 ]\n",
      "Scientometrics ['Machine Learning', 'Machine Learning', 'Neurons and Cognition']\n",
      "[0.23057567 0.23057568 0.17287904]\n",
      "Graph Algorithms ['Combinatorics', 'Discrete Mathematics']\n",
      "[0.33279368 0.36503422]\n",
      "Graph Algorithms ['Computation and Language', 'Information Retrieval', 'Social and Information Networks']\n",
      "[0.37685606 0.25989142 0.49699515]\n",
      "Computational Complexity ['Artificial Intelligence', 'Neurons and Cognition']\n",
      "[0.38657445 0.22727744]\n",
      "Error Correction Codes ['Networking and Internet Architecture', 'Optimization and Control']\n",
      "[0.07048965 0.16368225]\n",
      "Statistical Process Control ['Applications', 'Machine Learning']\n",
      "[0.2823339  0.33011794]\n",
      "Information Retrieval and Web Mining ['Social and Information Networks', 'Computers and Society']\n",
      "[0.38914895 0.1991799 ]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Communication Systems and Networks ['Distributed, Parallel, and Cluster Computing', 'Artificial Intelligence']\n",
      "[0.3942211  0.37790272]\n",
      "Optimization Problems in Communication Networks ['Computer Science and Game Theory', 'Information Theory', 'Information Theory']\n",
      "[0.2588662  0.33844748 0.33844742]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Computational Complexity']\n",
      "[0.46037382 1.0000001 ]\n",
      "Clustering and Partitioning ['Computation and Language;\\n', 'Computation and Language']\n",
      "[0.25976214 0.25960276]\n",
      "Computational Complexity ['Computational Engineering, Finance, and Science', 'Distributed, Parallel, and Cluster Computing', 'Numerical Analysis', 'Performance', 'Numerical Analysis']\n",
      "[0.40324906 0.39403978 0.36237565 0.3806998  0.36237568]\n",
      "Computer Science ['Software Engineering', 'Artificial Intelligence']\n",
      "[0.6534238 0.5365508]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Computational Complexity ['Information Theory', 'Information Theory', 'Machine Learning']\n",
      "[0.4165416  0.41654158 0.33507648]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Community Detection in Networks ['Physics and Society;\\n', 'Social and Information Networks']\n",
      "[0.15823948 0.45789096]\n",
      "Data Privacy and Security ['Computers and Society', 'Cryptography and Security']\n",
      "[0.33107522 0.6708385 ]\n",
      "Graph Algorithms ['Artificial Intelligence', 'Distributed, Parallel, and Cluster Computing']\n",
      "[0.30208015 0.43071035]\n",
      "Computational Complexity ['Neurons and Cognition', 'Disordered Systems and Neural Networks;\\n', 'Information Theory', 'Information Theory', 'Statistics and Probability;\\n']\n",
      "[0.22727735 0.31716302 0.41654158 0.41654158 0.18978305]\n",
      "Natural Language Processing ['Computation and Language', 'Machine Learning']\n",
      "[0.44363818 0.4816702 ]\n",
      "Network Aggregation and Fault Tolerance ['Information Theory', 'Information Theory']\n",
      "[0.21428254 0.21428253]\n",
      "Formal Verification ['Logic in Computer Science', 'Programming Languages']\n",
      "[0.4476803  0.24127202]\n",
      "Error Correction Codes ['Information Theory', 'Information Theory']\n",
      "[0.17080347 0.17080347]\n",
      "Formal Verification ['Computation and Language;\\n', 'Computation and Language']\n",
      "[0.45888436 0.45101014]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Information Retrieval ['Artificial Intelligence', 'Probability']\n",
      "[0.4723924  0.21678859]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Optimization ['Information Theory', 'Information Theory']\n",
      "[0.2888923 0.2888923]\n",
      "Computational Complexity ['Artificial Intelligence', 'Machine Learning']\n",
      "[0.3865744  0.33507648]\n",
      "Computational Complexity ['Artificial Intelligence', 'Logic in Computer Science']\n",
      "[0.38657445 0.40834948]\n",
      "Computational Complexity ['Computational Complexity', 'Quantum Physics\\n']\n",
      "[1.         0.26707062]\n",
      "Wiretap Channel and Lattice Coset Encoding ['Information Theory', 'Information Theory']\n",
      "[0.27901918 0.27901918]\n",
      "Social Network Analysis ['Social and Information Networks', 'Physics and Society;\\n', 'Applications']\n",
      "[0.77010226 0.20389494 0.2061888 ]\n",
      "Cryptography ['Information Theory', 'Cryptography and Security', 'Information Theory']\n",
      "[0.43407765 0.8977583  0.43407765]\n",
      "Neural Networks and Deep Learning ['Machine Learning', 'Neural and Evolutionary Computing']\n",
      "[0.53754145 0.45003337]\n",
      "Communication Systems and Networks ['Information Theory', 'Information Theory']\n",
      "[0.46368062 0.46368068]\n",
      "Signal Processing ['Information Theory', 'Information Theory']\n",
      "[0.3976476 0.3976476]\n",
      "Information Theory ['Information Theory', 'Information Theory']\n",
      "[1.0000001 1.0000001]\n",
      "Computational Complexity ['Distributed, Parallel, and Cluster Computing', 'Data Structures and Algorithms']\n",
      "[0.3940398  0.46037385]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Graph Algorithms ['Computational Complexity', 'Logic in Computer Science']\n",
      "[0.4729998 0.2833994]\n",
      "Network Security ['Information Theory', 'Networking and Internet Architecture', 'Information Theory']\n",
      "[0.28528765 0.5123005  0.28528765]\n",
      "Formal Verification ['Symbolic Computation', 'Logic in Computer Science']\n",
      "[0.41895664 0.44768032]\n",
      "Data Compression and Coding ['Information Theory', 'Information Theory']\n",
      "[0.41354683 0.41354683]\n",
      "Formal Verification ['Artificial Intelligence', 'Logic in Computer Science', 'Logic']\n",
      "[0.2636615  0.44768038 0.36653662]\n",
      "Computational Complexity ['Software Engineering', 'Mathematical Software']\n",
      "[0.2961037  0.32603467]\n",
      "Formal Verification ['Formal Languages and Automata Theory', 'Combinatorics']\n",
      "[0.512061   0.18436034]\n",
      "Clustering and Partitioning ['Physics and Society;\\n', 'Social and Information Networks']\n",
      "[0.07749233 0.23660323]\n",
      "Multi-Agent Systems ['Neural and Evolutionary Computing', 'Artificial Intelligence']\n",
      "[0.29632297 0.42438734]\n",
      "Network Aggregation and Fault Tolerance ['Distributed, Parallel, and Cluster Computing', 'Computational Engineering, Finance, and Science']\n",
      "[0.40715206 0.12981917]\n",
      "Quantum Computing ['Quantum Physics\\n', 'Information Theory', 'Information Theory']\n",
      "[0.70591336 0.2971276  0.2971276 ]\n",
      "Computational Complexity ['Computational Complexity', 'Machine Learning']\n",
      "[1.         0.33507648]\n",
      "Graph Algorithms ['Information Theory', 'Networking and Internet Architecture', 'Information Theory']\n",
      "[0.26934507 0.27758166 0.26934507]\n",
      "Error Correction Codes ['Information Theory', 'Information Theory']\n",
      "[0.17080347 0.17080347]\n",
      "Multi-Agent Systems ['Networking and Internet Architecture', 'Information Theory', 'Machine Learning', 'Information Theory']\n",
      "[0.30660185 0.28335097 0.22389688 0.28335097]\n",
      "Data Mining ['Information Retrieval', 'Machine Learning']\n",
      "[0.55995375 0.72039753]\n",
      "Computer Vision ['Computer Vision and Pattern Recognition', 'Computational Engineering, Finance, and Science']\n",
      "[0.77808577 0.21834016]\n",
      "Multi-Agent Systems ['Artificial Intelligence', 'Machine Learning']\n",
      "[0.4243872  0.22389692]\n",
      "Multi-Armed Bandit Problems ['Machine Learning', 'Machine Learning']\n",
      "[0.29116198 0.291162  ]\n",
      "Recommender Systems ['Optimization and Control', 'Artificial Intelligence', 'Information Retrieval']\n",
      "[0.12514618 0.30394134 0.45725876]\n",
      "Multi-Agent Systems ['Computation and Language;\\n', 'Computation and Language']\n",
      "[0.2988871  0.30715317]\n",
      "Cryptography ['Data Structures and Algorithms', 'Combinatorics', 'Numerical Analysis', 'Optimization and Control']\n",
      "[0.3782814  0.3350037  0.2599449  0.11512613]\n",
      "Information Theory ['Machine Learning', 'Machine Learning']\n",
      "[0.41611218 0.41611215]\n",
      "Functional Data Analysis ['Statistics Theory', 'Information Theory', 'Information Theory', 'Statistics Theory']\n",
      "[0.2716468 0.4017353 0.4017353 0.2716468]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Information Retrieval ['Computation and Language;\\n', 'Computation and Language']\n",
      "[0.3187556  0.32084054]\n",
      "Quantum Computing ['Computational Complexity', 'Quantum Physics\\n']\n",
      "[0.4355779  0.70591325]\n",
      "Communication Systems and Networks ['Data Structures and Algorithms', 'Distributed, Parallel, and Cluster Computing']\n",
      "[0.35839507 0.39422116]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Network Aggregation and Fault Tolerance ['Probability', 'Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.13583407 0.26315475 0.0823378 ]\n",
      "Computational Complexity ['Numerical Analysis', 'Computational Complexity', 'Data Structures and Algorithms', 'Numerical Analysis']\n",
      "[0.36237562 1.0000001  0.4603738  0.36237562]\n",
      "Model-Driven Engineering ['Machine Learning', 'Computational Engineering, Finance, and Science', 'Quantitative Methods']\n",
      "[0.26814443 0.37043348 0.14286299]\n",
      "Data Compression and Coding ['Cryptography and Security', 'Multimedia']\n",
      "[0.29749942 0.3472267 ]\n",
      "Computational Complexity ['Software Engineering', 'Formal Languages and Automata Theory']\n",
      "[0.2961037  0.29670274]\n",
      "Social Network Analysis ['Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.7701023  0.20389487]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Cryptography and Security', 'Databases']\n",
      "[0.46037382 0.24224742 0.1800404 ]\n",
      "Game Theory ['Data Structures and Algorithms', 'Computer Science and Game Theory']\n",
      "[0.11181965 0.8326239 ]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Data Privacy and Security ['Quantum Physics\\n', 'Cryptography and Security']\n",
      "[0.18487112 0.6708385 ]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Formal Verification ['Logic', 'Logic in Computer Science']\n",
      "[0.36653668 0.44768032]\n",
      "Control Theory ['Machine Learning', 'Information Theory', 'Information Theory']\n",
      "[0.22345227 0.35806403 0.35806397]\n",
      "Wireless Communications ['Information Theory', 'Multimedia', 'Information Theory']\n",
      "[0.3532626  0.31207892 0.3532626 ]\n",
      "Theoretical Computer Science ['Computational Engineering, Finance, and Science', 'Mathematical Software']\n",
      "[0.5686423  0.43425143]\n",
      "Computational Complexity ['Multimedia', 'Logic in Computer Science']\n",
      "[0.21542509 0.40834948]\n",
      "Multi-Agent Systems ['Distributed, Parallel, and Cluster Computing', 'Performance']\n",
      "[0.3511912  0.14103237]\n",
      "Data Privacy and Security ['Cryptography and Security', 'Digital Libraries', 'Multimedia']\n",
      "[0.6708386  0.30121008 0.17446838]\n",
      "Optimization ['Information Theory', 'Information Theory']\n",
      "[0.2888923 0.2888923]\n",
      "Scientific Inquiry ['Artificial Intelligence', 'Quantum Physics\\n']\n",
      "[0.31704643 0.32900798]\n",
      "Optimization ['Information Theory', 'Systems and Control', 'Information Theory', 'Optimization and Control']\n",
      "[0.28889233 0.28561252 0.28889233 0.8223882 ]\n",
      "Computer Science ['Databases', 'Distributed, Parallel, and Cluster Computing', 'Programming Languages']\n",
      "[0.37886566 0.37175283 0.54917073]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Discrete Mathematics', 'Software Engineering', 'Combinatorics']\n",
      "[0.4603738  0.37189883 0.29610372 0.3333512 ]\n",
      "Computational Complexity ['Disordered Systems and Neural Networks;\\n', 'Social and Information Networks', 'Physics and Society;\\n']\n",
      "[0.31716296 0.2492548  0.20308481]\n",
      "Computational Complexity ['Discrete Mathematics', 'Computational Complexity', 'Data Structures and Algorithms', 'Combinatorics']\n",
      "[0.37189883 1.0000001  0.4603738  0.3333512 ]\n",
      "Optimization ['Machine Learning', 'Multimedia']\n",
      "[0.4733091  0.24644582]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Multi-Armed Bandit Problems ['Combinatorics', 'Discrete Mathematics']\n",
      "[0.30114573 0.19186561]\n",
      "Robotics and Artificial Intelligence ['Computer Vision and Pattern Recognition', 'Artificial Intelligence', 'Robotics']\n",
      "[0.49189913 0.7688326  0.7807686 ]\n",
      "Machine Learning ['Computer Vision and Pattern Recognition', 'Machine Learning', 'Machine Learning']\n",
      "[0.49303263 0.99999994 1.        ]\n",
      "Graph Algorithms ['Data Structures and Algorithms', 'Computational Geometry']\n",
      "[0.58960474 0.4656842 ]\n",
      "Logic and Formal Systems ['Artificial Intelligence', 'Logic in Computer Science']\n",
      "[0.40749037 0.7131202 ]\n",
      "Error Correction Codes ['Information Theory', 'Information Theory']\n",
      "[0.17080347 0.17080347]\n",
      "Optimization ['Computational Geometry', 'Computational Engineering, Finance, and Science', 'Numerical Analysis']\n",
      "[0.39136222 0.32389268 0.449856  ]\n",
      "Computational Complexity ['Artificial Intelligence', 'Machine Learning']\n",
      "[0.3865744  0.33507648]\n",
      "User Interface Design and Automated Decision Systems ['Human-Computer Interaction', 'Computers and Society']\n",
      "[0.5655627  0.35054806]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Computational Complexity']\n",
      "[0.46037382 1.0000001 ]\n",
      "Cryptography ['Quantum Physics\\n', 'Cryptography and Security']\n",
      "[0.31363446 0.89775836]\n",
      "Social Network Analysis ['Software Engineering', 'Computers and Society']\n",
      "[0.1821123 0.2934187]\n",
      "Formal Methods for System Verification and Synthesis ['Logic in Computer Science', 'Programming Languages']\n",
      "[0.37782663 0.30221295]\n",
      "Graph Algorithms ['Combinatorics', 'Discrete Mathematics']\n",
      "[0.33279368 0.36503422]\n",
      "Cryptography ['Logic in Computer Science', 'Programming Languages', 'Quantum Physics\\n']\n",
      "[0.35489336 0.27244192 0.31363443]\n",
      "Combinatorics ['Computational Complexity', 'Disordered Systems and Neural Networks;\\n', 'Artificial Intelligence']\n",
      "[0.33335117 0.22754838 0.32130083]\n",
      "Computational Complexity ['Computation and Language', 'Artificial Intelligence']\n",
      "[0.57079107 0.38657445]\n",
      "Optimization ['Machine Learning', 'Machine Learning', 'Statistics Theory', 'Statistics Theory']\n",
      "[0.4733091 0.4733091 0.2691201 0.2691201]\n",
      "Information Retrieval ['Computation and Language', 'Information Retrieval']\n",
      "[0.3208405 1.       ]\n",
      "Wireless Communications ['Information Theory', 'Information Theory']\n",
      "[0.3532626  0.35326257]\n",
      "Information Retrieval and Web Mining ['Neural and Evolutionary Computing', 'Information Retrieval']\n",
      "[0.18075243 0.77973634]\n",
      "Information Theory ['Computation and Language;\\n', 'Computation and Language']\n",
      "[0.33817366 0.339486  ]\n",
      "Video Indexing and Search ['Information Retrieval', 'Computers and Society', 'Digital Libraries']\n",
      "[0.45610335 0.10305611 0.23815046]\n",
      "Computational Complexity ['Logic in Computer Science', 'Formal Languages and Automata Theory']\n",
      "[0.40834957 0.29670274]\n",
      "Multi-Agent Systems ['Information Theory', 'Multiagent Systems', 'Information Theory']\n",
      "[0.283351   0.82243603 0.283351  ]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Information Theory ['Information Theory', 'Information Theory']\n",
      "[1.0000001 1.0000001]\n",
      "Machine Learning ['Information Retrieval', 'Computation and Language', 'Digital Libraries']\n",
      "[0.5572251  0.3410795  0.27432236]\n",
      "Wiretap Channel and Lattice Coset Encoding ['Discrete Mathematics', 'Combinatorics']\n",
      "[0.07609335 0.09761132]\n",
      "Optimization ['Machine Learning', 'Machine Learning']\n",
      "[0.4733091  0.47330916]\n",
      "Data Compression and Coding ['Information Theory', 'Symbolic Computation', 'Information Theory']\n",
      "[0.41354683 0.3181139  0.41354683]\n",
      "Theoretical Computer Science ['Distributed, Parallel, and Cluster Computing', 'Databases']\n",
      "[0.4260668  0.32251126]\n",
      "Computational Complexity ['Social and Information Networks', 'Artificial Intelligence', 'Neural and Evolutionary Computing', 'Physics and Society;\\n']\n",
      "[0.24925482 0.38657436 0.3822165  0.2030848 ]\n",
      "Optimization Problems in Communication Networks ['Information Theory', 'Information Theory']\n",
      "[0.33844742 0.33844745]\n",
      "Information Theory ['Information Theory', 'Computational Geometry', 'Information Theory']\n",
      "[1.0000001  0.20327727 1.0000001 ]\n",
      "Multi-Agent Systems ['Multiagent Systems', 'Logic in Computer Science']\n",
      "[0.82243615 0.3036683 ]\n",
      "Information Retrieval ['Statistics and Probability;\\n', 'Computation and Language', 'Quantum Physics\\n']\n",
      "[0.26933762 0.3208405  0.16397654]\n",
      "Logic and Formal Systems ['Artificial Intelligence', 'Databases']\n",
      "[0.4074903  0.33383784]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Discrete Mathematics', 'Social and Information Networks']\n",
      "[0.46037382 0.3718988  0.24925482]\n",
      "Social Network Analysis ['Social and Information Networks', 'Computers and Society', 'Applications']\n",
      "[0.77010226 0.29341874 0.2061888 ]\n",
      "Network Security ['Information Theory', 'Information Theory']\n",
      "[0.28528765 0.28528765]\n",
      "Network Aggregation and Fault Tolerance ['Networking and Internet Architecture', 'Information Theory', 'Information Theory', 'Probability']\n",
      "[0.46192163 0.21428257 0.21428257 0.13583407]\n",
      "Community Detection in Networks ['Discrete Mathematics', 'Information Theory', 'Information Theory', 'Quantum Physics\\n']\n",
      "[0.12560284 0.25463265 0.25463265 0.14231095]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Data Privacy and Security ['Databases', 'Data Structures and Algorithms']\n",
      "[0.47336167 0.41978723]\n",
      "Error Correction Codes ['Information Theory', 'Information Theory']\n",
      "[0.17080347 0.17080347]\n",
      "Theoretical Computer Science ['Neural and Evolutionary Computing', 'Artificial Intelligence']\n",
      "[0.36237895 0.50253195]\n",
      "Wireless Communications ['Logic in Computer Science', 'Networking and Internet Architecture']\n",
      "[0.11994926 0.41110715]\n",
      "Natural Language Processing ['Computation and Language;\\n', 'Computation and Language']\n",
      "[0.41095552 0.44363815]\n",
      "Communication Systems and Networks ['Information Theory', 'Information Theory']\n",
      "[0.46368062 0.46368068]\n",
      "Image Segmentation ['Information Theory', 'Computer Vision and Pattern Recognition', 'Information Theory']\n",
      "[0.23217957 0.5134452  0.23217957]\n",
      "Information Retrieval ['Artificial Intelligence', 'Neural and Evolutionary Computing']\n",
      "[0.47239244 0.1767826 ]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Computational Geometry']\n",
      "[0.46037382 0.47332916]\n",
      "Quantum Computing ['Quantum Physics\\n', 'Computational Complexity']\n",
      "[0.70591336 0.43557793]\n",
      "Information Theory ['Machine Learning', 'Machine Learning']\n",
      "[0.41611218 0.41611215]\n",
      "Graph Algorithms ['Databases', 'Data Structures and Algorithms']\n",
      "[0.27184907 0.58960474]\n",
      "Computational Complexity ['Computational Engineering, Finance, and Science', 'Computational Geometry']\n",
      "[0.40324906 0.4733292 ]\n",
      "Multi-Agent Systems ['Networking and Internet Architecture', 'Computer Science and Game Theory']\n",
      "[0.30660185 0.40472353]\n",
      "Graph Colorings ['Discrete Mathematics', 'Combinatorics']\n",
      "[0.28458762 0.28778556]\n",
      "Image Segmentation ['Applications', 'Computer Vision and Pattern Recognition']\n",
      "[0.2951564 0.5134452]\n",
      "Network Security ['Information Theory', 'Cryptography and Security', 'Information Theory']\n",
      "[0.28528765 0.56298715 0.28528765]\n",
      "Machine Learning ['Neural and Evolutionary Computing', 'Computer Vision and Pattern Recognition']\n",
      "[0.3640874  0.49303254]\n",
      "Machine Learning ['Machine Learning', 'Machine Learning']\n",
      "[1. 1.]\n",
      "Cryptography ['Information Theory', 'Information Theory']\n",
      "[0.43407762 0.43407762]\n",
      "Computational Complexity ['Quantum Physics\\n', 'Information Theory', 'Information Theory']\n",
      "[0.2670706  0.41654158 0.4165416 ]\n",
      "Communication Systems and Networks ['Distributed, Parallel, and Cluster Computing', 'Systems and Control', 'Optimization and Control']\n",
      "[0.3942211  0.53190553 0.32737687]\n",
      "Information Retrieval ['Artificial Intelligence', 'Computer Vision and Pattern Recognition']\n",
      "[0.47239244 0.3924047 ]\n",
      "Information Retrieval and Web Mining ['Information Retrieval', 'Computation and Language']\n",
      "[0.7797363  0.30528006]\n",
      "Computer Vision ['Machine Learning', 'Computer Vision and Pattern Recognition']\n",
      "[0.5183859 0.7780858]\n",
      "Probability Theory and Statistics ['Combinatorics', 'Discrete Mathematics', 'Probability']\n",
      "[0.3838141  0.3469139  0.62195504]\n",
      "Data Mining ['Artificial Intelligence', 'Machine Learning']\n",
      "[0.5463268  0.72039753]\n",
      "Computational Complexity ['Computational Complexity', 'Combinatorics']\n",
      "[1.         0.33335114]\n",
      "Multi-Agent Systems ['Information Theory', 'Information Theory']\n",
      "[0.283351   0.28335097]\n",
      "Computational Complexity ['Computation and Language;\\n', 'Computation and Language']\n",
      "[0.5631449  0.57079107]\n",
      "Formal Verification ['Logic in Computer Science', 'Computational Complexity']\n",
      "[0.4476803 0.2477192]\n",
      "Network Security ['Networking and Internet Architecture', 'Performance']\n",
      "[0.5123005  0.20525672]\n",
      "Machine Learning ['Machine Learning', 'Machine Learning', 'Quantitative Methods']\n",
      "[1.         1.         0.37478304]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Quantitative Methods']\n",
      "[0.46037382 0.3319038 ]\n",
      "Signal Processing ['Information Theory', 'Information Theory']\n",
      "[0.3976476 0.3976476]\n",
      "Optimization Problems in Communication Networks ['Computer Vision and Pattern Recognition', 'Multimedia']\n",
      "[0.10943788 0.17505422]\n",
      "Computational Complexity ['Data Structures and Algorithms', 'Formal Languages and Automata Theory']\n",
      "[0.4603738  0.29670274]\n",
      "Computational Complexity ['Optimization and Control', 'Information Theory', 'Information Theory']\n",
      "[0.30672348 0.41654152 0.41654158]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n",
      "Optimization ['Optimization and Control', 'Neural and Evolutionary Computing']\n",
      "[0.8223881  0.36432293]\n",
      "Model-Driven Engineering ['Computational Engineering, Finance, and Science', 'Multiagent Systems']\n",
      "[0.3704335  0.30614752]\n",
      "Natural Language Processing ['Computation and Language', 'Information Retrieval', 'Machine Learning']\n",
      "[0.44363815 0.5049391  0.48167014]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Information Theory ['Physics and Society;\\n', 'Statistical Mechanics;\\n', 'Social and Information Networks']\n",
      "[0.24953496 0.4064841  0.40673703]\n",
      "Computational Complexity ['Numerical Analysis', 'Computational Engineering, Finance, and Science', 'Numerical Analysis']\n",
      "[0.3623756  0.40324903 0.3623756 ]\n",
      "Multi-Armed Bandit Problems ['Machine Learning', 'Machine Learning']\n",
      "[0.29116198 0.291162  ]\n",
      "Graph Colorings ['Information Theory', 'Combinatorics', 'Information Theory', 'Quantum Physics\\n']\n",
      "[0.19156316 0.28778553 0.19156316 0.11007828]\n",
      "Graph Algorithms ['Information Theory', 'Networking and Internet Architecture', 'Information Theory']\n",
      "[0.26934507 0.27758166 0.26934507]\n",
      "Multi-Agent Systems ['Systems and Control', 'Multiagent Systems', 'Robotics']\n",
      "[0.51404405 0.82243603 0.39301866]\n",
      "Information Retrieval ['Neurons and Cognition', 'Information Theory', 'Information Theory', 'Quantitative Methods', 'Methodology']\n",
      "[0.18580319 0.4692979  0.4692979  0.23883751 0.21888457]\n",
      "Quantum Computing ['Information Theory', 'Information Theory', 'Numerical Analysis']\n",
      "[0.2971276  0.2971276  0.24321118]\n",
      "Wireless Communications ['Networking and Internet Architecture', 'Information Theory', 'Information Theory']\n",
      "[0.4111072  0.35326254 0.35326254]\n",
      "Multi-Agent Systems ['Information Theory', 'Information Theory']\n",
      "[0.283351   0.28335097]\n",
      "Error Correction Codes ['Information Theory', 'Information Theory']\n",
      "[0.17080347 0.17080347]\n",
      "Data Privacy and Security ['Information Theory', 'Information Theory']\n",
      "[0.4184546  0.41845462]\n",
      "Communication Systems and Networks ['Systems and Control', 'Optimization and Control', 'Physics and Society;\\n']\n",
      "[0.53190553 0.3273768  0.31101963]\n",
      "Theoretical Computer Science ['Combinatorics', 'Machine Learning']\n",
      "[0.23393816 0.42745042]\n",
      "Optimization ['Optimization and Control', 'Systems and Control']\n",
      "[0.8223881  0.28561252]\n",
      "Combinatorics ['Computational Geometry', 'Discrete Mathematics']\n",
      "[0.20898573 0.6246265 ]\n",
      "Communication Systems and Networks ['Quantum Physics\\n', 'Information Theory', 'Information Theory']\n",
      "[0.20274176 0.46368068 0.46368062]\n",
      "Computational Complexity ['Numerical Analysis', 'Numerical Analysis']\n",
      "[0.36237565 0.36237562]\n",
      "Natural Language Processing ['Information Retrieval', 'Computation and Language']\n",
      "[0.50493896 0.44363815]\n",
      "Formal Verification ['Quantum Physics\\n', 'Logic in Computer Science']\n",
      "[0.07210355 0.44768032]\n",
      "Linear Codes and Sphere Decoding ['Information Theory', 'Disordered Systems and Neural Networks;\\n', 'Information Theory']\n",
      "[0.3587512  0.23899703 0.3587512 ]\n",
      "Communication Systems and Networks ['Information Theory', 'Information Theory']\n",
      "[0.46368062 0.46368068]\n",
      "Communication Systems and Networks ['Quantum Physics\\n', 'Information Theory', 'Information Theory']\n",
      "[0.20274176 0.46368068 0.46368062]\n",
      "Multiple Input Multiple Output (MIMO) Communications ['Information Theory', 'Information Theory']\n",
      "[0.18626851 0.18626851]\n",
      "Graph Algorithms ['Data Structures and Algorithms', 'Discrete Mathematics']\n",
      "[0.58960474 0.36503422]\n",
      "Communication Systems and Networks ['Information Theory', 'Information Theory']\n",
      "[0.46368062 0.46368068]\n",
      "Optimization ['Information Theory', 'Information Theory']\n",
      "[0.2888923 0.2888923]\n",
      "Data Compression and Coding ['Information Theory', 'Information Theory']\n",
      "[0.41354683 0.41354683]\n",
      "Multi-Agent Systems ['Artificial Intelligence', 'Applications']\n",
      "[0.4243872 0.2167636]\n",
      "Computational Complexity ['Artificial Intelligence', 'Data Structures and Algorithms', 'Multiagent Systems']\n",
      "[0.38657445 0.46037382 0.20784487]\n",
      "Wiretap Channel and Lattice Coset Encoding ['Information Theory', 'Information Theory']\n",
      "[0.27901918 0.27901918]\n",
      "Multi-Agent Systems ['Information Theory', 'Networking and Internet Architecture', 'Information Theory']\n",
      "[0.283351   0.30660188 0.283351  ]\n",
      "Computational Complexity ['Information Theory', 'Information Theory']\n",
      "[0.4165416  0.41654158]\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "212"
      ]
     },
     "execution_count": 62,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "correct = 0\n",
    "for index in range(len(predict_output)):\n",
    "    query_embedding = model.encode(predict_output[index])\n",
    "    print(predict_output[index], true_label[index])\n",
    "    passage_embedding = model.encode(true_label[index])\n",
    "    sim_scores = util.dot_score(query_embedding, passage_embedding)[0].numpy()\n",
    "    print(sim_scores)\n",
    "    rank_list = np.argsort(sim_scores)[-1]\n",
    "    if sim_scores[rank_list] >= 0.60:\n",
    "        correct +=1\n",
    "correct"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [],
   "source": [
    "ground_truth = []\n",
    "for row in summary:\n",
    "    ground_truth.append(row.split('; ')[1])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [],
   "source": [
    "file1 = open('../datasets/AAPD/llm_cluster_result/update_labelspace.txt', 'r')\n",
    "documents = file1.readlines()  \n",
    "\n",
    "label_space = []\n",
    "for row in documents:\n",
    "    label = row.strip()\n",
    "    label_space.append(label)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Information Retrieval\n",
      "Information Retrieval 1.0\n",
      "Methodology\n",
      "Theoretical Computer Science 0.418443\n",
      "Quantum Physics\n",
      "\n",
      "Quantum Computing 0.7059134\n",
      "Information Theory\n",
      "Information Theory 0.99999994\n",
      "Information Theory\n",
      "Information Theory 0.99999994\n",
      "Applications\n",
      "Computer Science 0.4330575\n",
      "Computer Vision and Pattern Recognition\n",
      "Computer Vision 0.77808595\n",
      "Computation and Language\n",
      "Computational Complexity 0.5707912\n",
      "Artificial Intelligence\n",
      "Robotics and Artificial Intelligence 0.76883245\n",
      "Numerical Analysis\n",
      "Optimization 0.44985604\n",
      "Mathematical Software\n",
      "Theoretical Computer Science 0.43425134\n",
      "Cryptography and Security\n",
      "Cryptography 0.8977585\n",
      "Software Engineering\n",
      "Computer Science 0.65342367\n",
      "Machine Learning\n",
      "Machine Learning 1.0\n",
      "Networking and Internet Architecture\n",
      "Communication Systems and Networks 0.58830416\n",
      "Systems and Control\n",
      "Control Systems 0.92395794\n",
      "Data Structures and Algorithms\n",
      "Graph Algorithms 0.5896046\n",
      "Computational Complexity\n",
      "Computational Complexity 1.0\n",
      "Formal Languages and Automata Theory\n",
      "Logic and Formal Systems 0.6585358\n",
      "Robotics\n",
      "Robotics and Artificial Intelligence 0.78076875\n",
      "Optimization and Control\n",
      "Optimization 0.8223882\n",
      "Multiagent Systems\n",
      "Multi-Agent Systems 0.822436\n",
      "Performance\n",
      "Optimization 0.43510914\n",
      "Social and Information Networks\n",
      "Social Network Analysis 0.77010226\n",
      "Physics and Society;\n",
      "\n",
      "Scientific Inquiry 0.47086018\n",
      "Distributed, Parallel, and Cluster Computing\n",
      "Clustering and Partitioning 0.5600151\n",
      "Databases\n",
      "Database Management 0.80001676\n",
      "Combinatorics\n",
      "Combinatorics 0.99999994\n",
      "Machine Learning\n",
      "Machine Learning 1.0\n",
      "Probability\n",
      "Probability Theory and Statistics 0.6219548\n",
      "Neural and Evolutionary Computing\n",
      "Neural Networks and Deep Learning 0.45003346\n",
      "Discrete Mathematics\n",
      "Combinatorics 0.6246264\n",
      "Statistical Mechanics;\n",
      "\n",
      "Probability Theory and Statistics 0.6441636\n",
      "Logic in Computer Science\n",
      "Logic and Formal Systems 0.7131202\n",
      "Computers and Society\n",
      "Computer Science 0.5071082\n",
      "Disordered Systems and Neural Networks;\n",
      "\n",
      "Neural Networks and Deep Learning 0.4859097\n",
      "Numerical Analysis\n",
      "Optimization 0.44985604\n",
      "Computational Engineering, Finance, and Science\n",
      "Computer Science 0.580586\n",
      "Symbolic Computation\n",
      "Computational Complexity 0.50227493\n",
      "Computer Science and Game Theory\n",
      "Game Theory 0.83262384\n",
      "Human-Computer Interaction\n",
      "Computer Vision 0.5437522\n",
      "Quantitative Methods\n",
      "Data Mining 0.39404222\n",
      "Digital Libraries\n",
      "Information Retrieval 0.40204832\n",
      "Neurons and Cognition\n",
      "Robotics and Artificial Intelligence 0.43114823\n",
      "Computational Geometry\n",
      "Computational Complexity 0.4733292\n",
      "Computation and Language;\n",
      "\n",
      "Computational Complexity 0.5631449\n",
      "Programming Languages\n",
      "Computer Science 0.54917073\n",
      "Logic\n",
      "Logic and Formal Systems 0.6248125\n",
      "Number Theory\n",
      "Cryptography 0.34691632\n",
      "Multimedia\n",
      "Computer Vision 0.4534583\n",
      "Statistics Theory\n",
      "Probability Theory and Statistics 0.8752099\n",
      "Statistics Theory\n",
      "Probability Theory and Statistics 0.8752099\n",
      "Adaptation and Self-Organizing Systems\n",
      "Control Systems 0.43907508\n",
      "Statistics and Probability;\n",
      "\n",
      "Probability Theory and Statistics 0.8413552\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "28"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "correct = 0\n",
    "for lb in ground_truth:\n",
    "    query_embedding = model.encode(lb)\n",
    "    print(lb)\n",
    "    passage_embedding = model.encode(label_space)\n",
    "    sim_scores = util.dot_score(query_embedding, passage_embedding)[0].numpy()\n",
    "    rank_list = np.argsort(sim_scores)[-1]\n",
    "    print(label_space[rank_list], sim_scores[rank_list])\n",
    "    if sim_scores[rank_list] >= 0.60:\n",
    "        correct +=1\n",
    "correct"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0.5185185185185185"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "correct/ len(ground_truth)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [],
   "source": [
    "with open(\"../datasets/Reuters-21578/llm_cluster_result/zero_shot_text_test.json\",\"r\") as json_file:\n",
    "    json_list = list(json_file)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {},
   "outputs": [],
   "source": [
    "predict_output = []\n",
    "for i in range(len(json_list)):\n",
    "    predict_output.append(json_list[i].split('\"labels\": [')[1].split(',')[0][1:-1])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {},
   "outputs": [],
   "source": [
    "file1 = open('../datasets/Reuters-21578/test_label.txt', 'r')\n",
    "labels = file1.readlines()[:1000]  \n",
    "test_set = []  \n",
    "for label in labels:\n",
    "    lbs = label.strip().split(' ')\n",
    "    test_set.append(lbs)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "90"
      ]
     },
     "execution_count": 35,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "file1 = open('../datasets/Reuters-21578/test_label.txt', 'r')\n",
    "labels = file1.readlines()\n",
    "true_labels = []\n",
    "for row in labels:\n",
    "    lb_set = row.strip().split(' ')\n",
    "    for lb in lb_set:\n",
    "        if not lb in true_labels:\n",
    "            true_labels.append(lb)\n",
    "len(true_labels)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "trade_surplus ['trade']\n",
      "[0.4621315]\n",
      "agriculture ['grain']\n",
      "[0.4831558]\n",
      "natural gas ['nat-gas', 'crude']\n",
      "[0.7379503 0.4206357]\n",
      "economic growth ['rubber', 'tin', 'sugar', 'corn', 'rice', 'grain', 'trade']\n",
      "[0.17631824 0.09895086 0.08952741 0.15540086 0.13683201 0.09335928\n",
      " 0.17316827]\n",
      "palm oil ['palm-oil', 'veg-oil']\n",
      "[0.96469706 0.5938508 ]\n",
      "shipping ['ship']\n",
      "[0.71062666]\n",
      "rubber ['rubber', 'coffee', 'lumber', 'palm-oil', 'veg-oil']\n",
      "[1.0000001  0.25706416 0.35786444 0.3771101  0.35498777]\n",
      "agriculture ['wheat', 'grain']\n",
      "[0.5528396  0.48315582]\n",
      "mining ['gold']\n",
      "[0.41335472]\n",
      "banking ['acq']\n",
      "[0.24160089]\n",
      "mining ['tin']\n",
      "[0.35684258]\n",
      "monetary policy ['interest', 'money-fx']\n",
      "[0.43026766 0.53972757]\n",
      "financial losses ['copper', 'acq']\n",
      "[0.19947402 0.1341422 ]\n",
      "economic growth ['ipi']\n",
      "[0.18460433]\n",
      "agriculture ['soybean', 'oilseed', 'corn', 'grain', 'carcass', 'livestock', 'rice', 'trade']\n",
      "[0.4630654  0.46096462 0.5442389  0.48315588 0.3825903  0.6434237\n",
      " 0.49478465 0.22720541]\n",
      "stock listings ['earn']\n",
      "[0.22140014]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "banking ['interest', 'money-fx']\n",
      "[0.4702595  0.49652755]\n",
      "economic policy ['bop', 'trade']\n",
      "[0.18185832 0.18585339]\n",
      "oil ['lead', 'gas']\n",
      "[0.35857618 0.5958657 ]\n",
      "mining ['acq']\n",
      "[0.23087595]\n",
      "economic growth ['jobs']\n",
      "[0.2732079]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial losses ['earn']\n",
      "[0.3400104]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "regulation ['tin']\n",
      "[0.10328158]\n",
      "trade deficit ['trade']\n",
      "[0.4288024]\n",
      "shipping ['zinc']\n",
      "[0.15454677]\n",
      "raw sugar prices ['sugar']\n",
      "[0.54427534]\n",
      "sales ['sugar']\n",
      "[0.28651288]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "interest_rates ['money-fx', 'interest']\n",
      "[0.2917203 0.5742056]\n",
      "economic policy ['cpi', 'gnp']\n",
      "[0.44327605 0.1780215 ]\n",
      "oil production ['soybean', 'oilseed', 'soy-oil', 'palm-oil', 'veg-oil']\n",
      "[0.34549972 0.57937956 0.52062815 0.4589597  0.50850064]\n",
      "stock splits ['earn']\n",
      "[0.21117528]\n",
      "stock listings ['acq']\n",
      "[0.13607089]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "trade_surplus ['trade']\n",
      "[0.4621315]\n",
      "stock listings ['acq']\n",
      "[0.13607089]\n",
      "mining ['acq']\n",
      "[0.23087595]\n",
      "stock listings ['earn']\n",
      "[0.22140014]\n",
      "trade deficit ['trade']\n",
      "[0.4288024]\n",
      "banking ['yen', 'dlr', 'money-fx']\n",
      "[0.29435322 0.18775168 0.49652767]\n",
      "inflation ['cpi']\n",
      "[0.586895]\n",
      "banking ['interest', 'money-fx']\n",
      "[0.4702595  0.49652755]\n",
      "lawsuits ['acq']\n",
      "[0.25611126]\n",
      "agriculture ['sugar']\n",
      "[0.2954266]\n",
      "pricing ['sugar']\n",
      "[0.21647744]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "pricing ['nickel']\n",
      "[0.2712516]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "monetary policy ['dlr', 'money-fx']\n",
      "[0.06645723 0.53972757]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "agriculture ['groundnut']\n",
      "[0.34026095]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "shipping ['ship']\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[0.71062666]\n",
      "rubber ['earn']\n",
      "[0.16108401]\n",
      "labour_disputes ['ship']\n",
      "[0.16964543]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "banking ['interest', 'money-fx']\n",
      "[0.4702595  0.49652755]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "unemployment ['jobs']\n",
      "[0.565886]\n",
      "sales ['earn']\n",
      "[0.40866196]\n",
      "sales ['acq']\n",
      "[0.2674072]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "regulation ['acq']\n",
      "[0.20294166]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "banking ['earn']\n",
      "[0.38772967]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "sales ['sugar']\n",
      "[0.28651288]\n",
      "economic policy ['money-fx']\n",
      "[0.36491323]\n",
      "sales ['sugar']\n",
      "[0.28651288]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "sales ['earn']\n",
      "[0.40866196]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "agriculture ['sugar']\n",
      "[0.2954266]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "shipping ['sugar']\n",
      "[0.1776211]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "stock splits ['earn']\n",
      "[0.21117528]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "pricing ['corn', 'grain']\n",
      "[0.19051832 0.16781984]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "oil ['heat']\n",
      "[0.49402663]\n",
      "agriculture ['soybean', 'oilseed', 'wheat', 'sunseed', 'sorghum', 'corn', 'grain']\n",
      "[0.4630654  0.46096462 0.5528394  0.2458059  0.50130343 0.5442389\n",
      " 0.4831558 ]\n",
      "unemployment ['jobs']\n",
      "[0.565886]\n",
      "reserves ['earn']\n",
      "[0.3318557]\n",
      "monetary policy ['money-fx']\n",
      "[0.5397276]\n",
      "monetary policy ['interest']\n",
      "[0.43026766]\n",
      "financial statements ['acq']\n",
      "[0.19324645]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "banking ['earn']\n",
      "[0.38772967]\n",
      "financial losses ['earn']\n",
      "[0.3400104]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "sales ['acq']\n",
      "[0.2674072]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "oil ['earn', 'acq', 'crude', 'pet-chem']\n",
      "[0.23682533 0.13822867 0.5401486  0.25122666]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "banking ['earn']\n",
      "[0.38772967]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "federal_reserve ['interest']\n",
      "[0.38737336]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "cocoa ['cocoa']\n",
      "[0.9999999]\n",
      "banking ['interest']\n",
      "[0.47025946]\n",
      "grain imports ['wheat', 'grain']\n",
      "[0.51312447 0.75751954]\n",
      "financial losses ['earn']\n",
      "[0.3400104]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "agriculture ['soybean', 'oilseed', 'corn', 'grain']\n",
      "[0.4630654  0.46096462 0.5442389  0.48315582]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "pricing ['tin']\n",
      "[0.20309038]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "stock splits ['earn']\n",
      "[0.21117528]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "grain imports ['rapeseed', 'oilseed']\n",
      "[0.26070383 0.38181958]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "grain imports ['wheat', 'grain']\n",
      "[0.51312447 0.75751954]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial losses ['earn']\n",
      "[0.3400104]\n",
      "trade deficit ['trade']\n",
      "[0.4288024]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "economic policy ['trade']\n",
      "[0.18585348]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "cocoa ['cocoa']\n",
      "[0.9999999]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "pricing ['earn']\n",
      "[0.3792391]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "strategic options ['coffee']\n",
      "[0.14146832]\n",
      "oil production ['crude']\n",
      "[0.42932284]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "agriculture ['rice']\n",
      "[0.4947848]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "monetary policy ['interest', 'dlr', 'money-fx']\n",
      "[0.43026763 0.06645723 0.5397276 ]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "regulation ['tin']\n",
      "[0.10328158]\n",
      "agriculture ['cotton']\n",
      "[0.36291063]\n",
      "sales ['earn']\n",
      "[0.40866196]\n",
      "banking ['earn']\n",
      "[0.38772967]\n",
      "protectionism ['trade']\n",
      "[0.10732378]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "banking ['earn']\n",
      "[0.38772967]\n",
      "defense ['crude']\n",
      "[0.24451715]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "banking ['money-fx']\n",
      "[0.49652764]\n",
      "agriculture ['livestock']\n",
      "[0.64342374]\n",
      "oil production ['earn', 'crude']\n",
      "[0.22586018 0.42932284]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "monetary policy ['money-supply']\n",
      "[0.5266379]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "oil ['crude']\n",
      "[0.5401485]\n",
      "economic policy ['money-supply']\n",
      "[0.45779887]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial losses ['earn']\n",
      "[0.3400104]\n",
      "economic policy ['money-fx']\n",
      "[0.36491323]\n",
      "agriculture ['carcass', 'livestock']\n",
      "[0.38259032 0.6434237 ]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial losses ['earn']\n",
      "[0.3400104]\n",
      "economic policy ['iron-steel', 'trade']\n",
      "[0.16846639 0.18585345]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "mergers ['copper']\n",
      "[0.15747717]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "grain agreement ['wheat', 'grain']\n",
      "[0.47729746 0.76637036]\n",
      "grain imports ['wheat', 'grain']\n",
      "[0.51312447 0.75751954]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "stock splits ['earn']\n",
      "[0.21117528]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "earnings ['acq']\n",
      "[0.19825035]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "grain imports ['corn', 'grain']\n",
      "[0.46352357 0.75751954]\n",
      "agriculture ['l-cattle', 'livestock']\n",
      "[0.39841956 0.6434237 ]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "stock listings ['acq']\n",
      "[0.13607089]\n",
      "financial losses ['earn']\n",
      "[0.3400104]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "pricing ['acq']\n",
      "[0.30495822]\n",
      "agriculture ['grain']\n",
      "[0.4831558]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "sales ['acq']\n",
      "[0.2674072]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "economic policy ['interest']\n",
      "[0.36334342]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "shipping ['iron-steel', 'trade']\n",
      "[0.25137326 0.5084468 ]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "regulation ['crude', 'nat-gas']\n",
      "[0.20415032 0.19661786]\n",
      "banking ['earn']\n",
      "[0.38772967]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial losses ['earn']\n",
      "[0.3400104]\n",
      "pricing ['coffee']\n",
      "[0.22340705]\n",
      "earnings ['acq']\n",
      "[0.19825035]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "stock listings ['crude', 'gas']\n",
      "[0.14182296 0.11325442]\n",
      "agriculture ['wheat', 'corn', 'grain', 'veg-oil']\n",
      "[0.5528395  0.5442389  0.48315582 0.19938153]\n",
      "oil ['crude', 'gas']\n",
      "[0.5401486 0.5958657]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "bankruptcy ['acq']\n",
      "[0.2166067]\n",
      "oil ['gas', 'crude']\n",
      "[0.5958657 0.5401487]\n",
      "economic policy ['trade']\n",
      "[0.18585348]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "regulation ['coffee']\n",
      "[0.22244433]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "banking ['money-fx', 'interest']\n",
      "[0.49652764 0.47025946]\n",
      "unemployment ['jobs']\n",
      "[0.565886]\n",
      "oil production ['acq']\n",
      "[0.02847402]\n",
      "grain imports ['rice', 'grain']\n",
      "[0.45475245 0.75751954]\n",
      "aluminum ['alum']\n",
      "[0.679158]\n",
      "regulation ['trade', 'acq']\n",
      "[0.18222375 0.20294167]\n",
      "economic policy ['money-fx', 'trade']\n",
      "[0.36491325 0.18585345]\n",
      "banking ['interest', 'money-fx']\n",
      "[0.4702595  0.49652755]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "banking ['interest']\n",
      "[0.47025946]\n",
      "trade deficit ['trade']\n",
      "[0.4288024]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "agriculture ['grain', 'wheat']\n",
      "[0.4831558 0.5528395]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "pricing ['sugar']\n",
      "[0.21647744]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "economic policy ['yen']\n",
      "[0.16114111]\n",
      "sales ['acq']\n",
      "[0.2674072]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "expansion ['rubber']\n",
      "[0.21833381]\n",
      "banking ['interest']\n",
      "[0.47025946]\n",
      "mining ['gold']\n",
      "[0.41335472]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "sales ['sugar']\n",
      "[0.28651288]\n",
      "debt ['nat-gas']\n",
      "[0.17201108]\n",
      "banking ['earn']\n",
      "[0.38772967]\n",
      "pricing ['palladium', 'strategic-metal', 'platinum']\n",
      "[0.18898545 0.2555473  0.27614555]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "rubber ['rubber']\n",
      "[1.]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "trade_surplus ['trade']\n",
      "[0.4621315]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "trade_surplus ['trade']\n",
      "[0.4621315]\n",
      "banking ['money-fx', 'dlr']\n",
      "[0.49652764 0.18775168]\n",
      "monetary policy ['yen']\n",
      "[0.27389142]\n",
      "banking ['interest', 'money-fx']\n",
      "[0.4702595  0.49652755]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "reserves ['reserves']\n",
      "[0.9999999]\n",
      "banking ['money-fx', 'dlr']\n",
      "[0.49652764 0.18775168]\n",
      "monetary policy ['interest', 'money-fx']\n",
      "[0.43026766 0.53972757]\n",
      "raw sugar prices ['sugar']\n",
      "[0.54427534]\n",
      "pricing ['trade']\n",
      "[0.42216223]\n",
      "pricing ['money-fx']\n",
      "[0.36576504]\n",
      "banking ['money-fx', 'dlr']\n",
      "[0.49652764 0.18775168]\n",
      "economic policy ['money-fx']\n",
      "[0.36491323]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "economic policy ['money-fx', 'trade']\n",
      "[0.36491325 0.18585345]\n",
      "economic policy ['money-fx']\n",
      "[0.36491323]\n",
      "monetary policy ['yen']\n",
      "[0.27389142]\n",
      "economic policy ['yen']\n",
      "[0.16114111]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "banking ['money-fx', 'dlr']\n",
      "[0.49652764 0.18775168]\n",
      "agriculture ['sugar']\n",
      "[0.2954266]\n",
      "pricing ['acq']\n",
      "[0.30495822]\n",
      "banking ['acq']\n",
      "[0.24160089]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "pricing ['gold']\n",
      "[0.32276863]\n",
      "agriculture ['grain', 'wheat']\n",
      "[0.4831558 0.5528395]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "pricing ['gold']\n",
      "[0.32276863]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "monetary policy ['yen']\n",
      "[0.27389142]\n",
      "labour_disputes ['ship']\n",
      "[0.16964543]\n",
      "unemployment ['jobs']\n",
      "[0.565886]\n",
      "pricing ['acq']\n",
      "[0.30495822]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "agriculture ['meal-feed', 'wheat', 'sun-oil', 'rape-oil', 'soy-oil', 'groundnut-oil', 'lin-oil', 'sun-meal', 'sorghum', 'veg-oil', 'oilseed', 'grain']\n",
      "[0.41943815 0.5528396  0.23894751 0.286551   0.3034892  0.29932034\n",
      " 0.21073863 0.30936506 0.50130355 0.1993815  0.46096468 0.48315588]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "economic policy ['yen']\n",
      "[0.16114111]\n",
      "pricing ['livestock']\n",
      "[0.17955823]\n",
      "financial losses ['money-fx']\n",
      "[0.38157928]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "oil ['heat', 'crude']\n",
      "[0.49402663 0.5401487 ]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "monetary policy ['interest', 'money-fx']\n",
      "[0.43026766 0.53972757]\n",
      "banking ['money-fx']\n",
      "[0.49652764]\n",
      "pricing ['money-fx']\n",
      "[0.36576504]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "shipping ['ship', 'grain']\n",
      "[0.7106266  0.22629564]\n",
      "agriculture ['livestock', 'hog']\n",
      "[0.6434238  0.20108318]\n",
      "pricing ['earn']\n",
      "[0.3792391]\n",
      "natural disasters ['soybean', 'oilseed']\n",
      "[0.17478505 0.14597504]\n",
      "monetary policy ['interest', 'money-fx']\n",
      "[0.43026766 0.53972757]\n",
      "natural disasters ['coffee']\n",
      "[0.1876448]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "economic policy ['bop']\n",
      "[0.18185833]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "monetary policy ['yen', 'dlr']\n",
      "[0.27389142 0.06645723]\n",
      "monetary policy ['interest']\n",
      "[0.43026766]\n",
      "economic growth ['gnp']\n",
      "[0.14014877]\n",
      "economic policy ['trade', 'money-supply', 'interest']\n",
      "[0.18585348 0.457799   0.36334345]\n",
      "stock splits ['earn']\n",
      "[0.21117528]\n",
      "mining ['lead']\n",
      "[0.347042]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "banking ['interest']\n",
      "[0.47025946]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "economic policy ['dlr']\n",
      "[0.10290199]\n",
      "pricing ['lead']\n",
      "[0.25221527]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "agriculture ['sorghum', 'wheat', 'rice', 'grain']\n",
      "[0.50130355 0.5528395  0.49478477 0.48315582]\n",
      "stock listings ['cotton']\n",
      "[0.15960324]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "stock listings ['acq']\n",
      "[0.13607089]\n",
      "grain imports ['wheat', 'grain']\n",
      "[0.51312447 0.75751954]\n",
      "economic growth ['bop']\n",
      "[0.16033669]\n",
      "oil production ['groundnut', 'oilseed']\n",
      "[0.20656152 0.5793797 ]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "interest_rates ['interest']\n",
      "[0.5742056]\n",
      "interest_rates ['interest']\n",
      "[0.5742056]\n",
      "natural disasters ['grain']\n",
      "[0.15290089]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "grain imports ['grain', 'wheat']\n",
      "[0.75751954 0.5131245 ]\n",
      "sales ['earn']\n",
      "[0.40866196]\n",
      "sales ['coffee']\n",
      "[0.25372508]\n",
      "stock splits ['earn']\n",
      "[0.21117528]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "sales ['acq']\n",
      "[0.2674072]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "economic policy ['interest']\n",
      "[0.36334342]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "pricing ['heat']\n",
      "[0.31329533]\n",
      "banking ['interest']\n",
      "[0.47025946]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "monetary policy ['interest', 'money-fx']\n",
      "[0.43026766 0.53972757]\n",
      "sales ['acq']\n",
      "[0.2674072]\n",
      "economic policy ['interest']\n",
      "[0.36334342]\n",
      "pricing ['barley', 'wheat', 'corn', 'grain']\n",
      "[0.15462007 0.1494826  0.19051832 0.16781983]\n",
      "pricing ['potato']\n",
      "[0.22434688]\n",
      "economic policy ['money-fx']\n",
      "[0.36491323]\n",
      "acquisitions ['iron-steel']\n",
      "[0.1754595]\n",
      "pricing ['tin']\n",
      "[0.20309038]\n",
      "monetary policy ['money-fx', 'dlr']\n",
      "[0.5397276  0.06645722]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "sales ['acq']\n",
      "[0.2674072]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "automotive ['earn']\n",
      "[0.2460493]\n",
      "economic policy ['money-fx']\n",
      "[0.36491323]\n",
      "automotive ['earn']\n",
      "[0.2460493]\n",
      "stock listings ['iron-steel']\n",
      "[0.16038053]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "agriculture ['livestock', 'carcass']\n",
      "[0.6434238  0.38259035]\n",
      "agriculture ['cotton']\n",
      "[0.36291063]\n",
      "banking ['bop', 'trade']\n",
      "[0.32728174 0.21995644]\n",
      "agriculture ['grain', 'corn']\n",
      "[0.4831558 0.544239 ]\n",
      "agriculture ['barley', 'grain']\n",
      "[0.4561717  0.48315582]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "cocoa ['cocoa']\n",
      "[0.9999999]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "economic policy ['money-fx']\n",
      "[0.36491323]\n",
      "sales ['acq']\n",
      "[0.2674072]\n",
      "economic policy ['trade']\n",
      "[0.18585348]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "stock listings ['acq']\n",
      "[0.13607089]\n",
      "sales ['earn']\n",
      "[0.40866196]\n",
      "agriculture ['orange']\n",
      "[0.2092441]\n",
      "agriculture ['wheat', 'corn', 'barley', 'grain']\n",
      "[0.5528395  0.5442389  0.45617166 0.48315582]\n",
      "monetary policy ['money-fx', 'dlr']\n",
      "[0.5397276  0.06645722]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "stock listings ['acq']\n",
      "[0.13607089]\n",
      "agriculture ['wheat', 'corn', 'grain', 'soybean', 'oilseed']\n",
      "[0.5528395  0.5442389  0.48315582 0.4630654  0.46096462]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "monetary policy ['money-fx', 'dlr']\n",
      "[0.5397276  0.06645722]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "monetary policy ['money-fx']\n",
      "[0.5397276]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "shipping ['ship', 'sugar']\n",
      "[0.7106266  0.17762107]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "sales ['earn']\n",
      "[0.40866196]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "shipping ['ship', 'grain']\n",
      "[0.7106266  0.22629564]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "banking ['acq']\n",
      "[0.24160089]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "agriculture ['corn', 'grain']\n",
      "[0.544239   0.48315582]\n",
      "grain imports ['rapeseed', 'oilseed']\n",
      "[0.26070383 0.38181958]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "economic growth ['coffee', 'trade']\n",
      "[0.12648657 0.17316829]\n",
      "shipping ['ship', 'grain']\n",
      "[0.7106266  0.22629564]\n",
      "shipping ['ship', 'sugar']\n",
      "[0.7106266  0.17762107]\n",
      "grain imports ['barley', 'wheat', 'ship', 'grain']\n",
      "[0.48823074 0.51312447 0.1820891  0.7575196 ]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "trade_surplus ['coffee', 'trade']\n",
      "[0.17058153 0.4621313 ]\n",
      "sales ['acq']\n",
      "[0.2674072]\n",
      "sales ['retail']\n",
      "[0.67920417]\n",
      "economic policy ['earn']\n",
      "[0.33582014]\n",
      "shipping ['soy-oil', 'veg-oil']\n",
      "[0.17945565 0.15684523]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "pricing ['lead']\n",
      "[0.25221527]\n",
      "financial statements ['reserves']\n",
      "[0.28666568]\n",
      "financial losses ['earn']\n",
      "[0.3400104]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "sales ['acq']\n",
      "[0.2674072]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "trade_surplus ['bop']\n",
      "[0.14830008]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "agriculture ['carcass', 'livestock']\n",
      "[0.38259032 0.6434237 ]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "mining ['gold']\n",
      "[0.41335472]\n",
      "pricing ['sugar']\n",
      "[0.21647744]\n",
      "banking ['interest']\n",
      "[0.47025946]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "mining ['gold']\n",
      "[0.41335472]\n",
      "banking ['interest']\n",
      "[0.47025946]\n",
      "expansion ['tin']\n",
      "[0.19678551]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "pricing ['heat']\n",
      "[0.31329533]\n",
      "pricing ['copper']\n",
      "[0.24232607]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "grain imports ['wheat', 'grain']\n",
      "[0.51312447 0.75751954]\n",
      "defense ['strategic-metal']\n",
      "[0.31600124]\n",
      "economic growth ['trade']\n",
      "[0.17316833]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "agriculture ['grain']\n",
      "[0.4831558]\n",
      "agriculture ['grain']\n",
      "[0.4831558]\n",
      "agriculture ['soybean', 'oilseed', 'wheat', 'corn', 'grain']\n",
      "[0.4630654  0.46096462 0.5528395  0.5442389  0.48315585]\n",
      "agriculture ['orange']\n",
      "[0.2092441]\n",
      "agriculture ['orange']\n",
      "[0.2092441]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "stock listings ['earn']\n",
      "[0.22140014]\n",
      "agriculture ['meal-feed', 'soy-meal', 'oilseed', 'veg-oil', 'soy-oil', 'soybean', 'cotton', 'wheat', 'grain']\n",
      "[0.41943812 0.3588091  0.4609646  0.19938156 0.30348924 0.46306533\n",
      " 0.36291063 0.5528395  0.4831558 ]\n",
      "agriculture ['orange']\n",
      "[0.2092441]\n",
      "agriculture ['orange']\n",
      "[0.2092441]\n",
      "agriculture ['corn', 'grain']\n",
      "[0.544239   0.48315582]\n",
      "agriculture ['potato']\n",
      "[0.4329237]\n",
      "agriculture ['potato']\n",
      "[0.4329237]\n",
      "agriculture ['wheat', 'corn', 'grain']\n",
      "[0.5528396 0.544239  0.4831558]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "grain imports ['corn', 'wheat', 'grain']\n",
      "[0.46352357 0.5131245  0.75751954]\n",
      "agriculture ['wheat', 'grain']\n",
      "[0.5528396  0.48315582]\n",
      "agriculture ['soybean', 'oilseed']\n",
      "[0.4630653  0.46096462]\n",
      "agriculture ['wheat', 'grain']\n",
      "[0.5528396  0.48315582]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "agriculture ['wheat', 'grain']\n",
      "[0.5528396  0.48315582]\n",
      "agriculture ['wheat', 'grain']\n",
      "[0.5528396  0.48315582]\n",
      "agriculture ['wheat', 'grain']\n",
      "[0.5528396  0.48315582]\n",
      "agriculture ['rice', 'oat', 'barley', 'cotton-oil', 'sorghum', 'cotton', 'soy-oil', 'veg-oil', 'meal-feed', 'soy-meal', 'soybean', 'oilseed', 'corn', 'grain']\n",
      "[0.49478477 0.26426142 0.4561716  0.33787704 0.50130355 0.36291063\n",
      " 0.3034892  0.1993815  0.41943815 0.3588092  0.46306536 0.46096468\n",
      " 0.5442389  0.48315588]\n",
      "defense ['strategic-metal']\n",
      "[0.31600124]\n",
      "agriculture ['wheat', 'grain']\n",
      "[0.5528396  0.48315582]\n",
      "agriculture ['oat', 'barley', 'sorghum', 'rice', 'cotton', 'soy-meal', 'soy-oil', 'soybean', 'wheat', 'corn', 'veg-oil', 'meal-feed', 'oilseed', 'grain']\n",
      "[0.26426142 0.4561716  0.50130355 0.49478477 0.36291063 0.3588092\n",
      " 0.3034892  0.46306536 0.5528396  0.5442389  0.1993815  0.41943815\n",
      " 0.46096468 0.48315588]\n",
      "agriculture ['cotton']\n",
      "[0.36291063]\n",
      "agriculture ['corn', 'grain']\n",
      "[0.544239   0.48315582]\n",
      "stock splits ['earn']\n",
      "[0.21117528]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "agriculture ['cotton', 'soy-meal', 'soy-oil', 'soybean', 'corn', 'wheat', 'veg-oil', 'meal-feed', 'oilseed', 'grain']\n",
      "[0.36291063 0.3588091  0.30348924 0.46306533 0.5442389  0.5528395\n",
      " 0.19938156 0.41943812 0.46096465 0.48315582]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "grain imports ['wheat', 'grain']\n",
      "[0.51312447 0.75751954]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "grain agreement ['wheat', 'grain']\n",
      "[0.47729746 0.76637036]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "agriculture ['soy-meal', 'meal-feed']\n",
      "[0.35880923 0.4194382 ]\n",
      "agriculture ['corn', 'grain']\n",
      "[0.544239   0.48315582]\n",
      "agriculture ['rice', 'cotton', 'soy-oil', 'veg-oil', 'soy-meal', 'meal-feed', 'soybean', 'oilseed', 'corn', 'wheat', 'grain']\n",
      "[0.49478477 0.36291063 0.3034892  0.1993815  0.3588092  0.41943815\n",
      " 0.46306536 0.46096468 0.5442389  0.5528396  0.48315576]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "agriculture ['corn', 'grain']\n",
      "[0.544239   0.48315582]\n",
      "agriculture ['soy-meal', 'corn', 'wheat', 'meal-feed', 'grain']\n",
      "[0.3588092  0.5442389  0.5528395  0.41943818 0.48315585]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "agriculture ['grain']\n",
      "[0.4831558]\n",
      "grain agreement ['wheat', 'grain']\n",
      "[0.47729746 0.76637036]\n",
      "agriculture ['sunseed', 'oilseed', 'sorghum', 'corn', 'soybean', 'wheat', 'grain']\n",
      "[0.2458059  0.46096462 0.50130355 0.5442389  0.46306536 0.5528395\n",
      " 0.4831558 ]\n",
      "sales ['acq']\n",
      "[0.2674072]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "agriculture ['soybean', 'oilseed']\n",
      "[0.4630653  0.46096462]\n",
      "agriculture ['soy-meal', 'meal-feed']\n",
      "[0.35880923 0.4194382 ]\n",
      "agriculture ['soy-oil', 'veg-oil']\n",
      "[0.3034892  0.19938153]\n",
      "pricing ['fuel']\n",
      "[0.26534295]\n",
      "agriculture ['cotton']\n",
      "[0.36291063]\n",
      "grain agreement ['wheat', 'grain']\n",
      "[0.47729746 0.76637036]\n",
      "agriculture ['rice', 'grain']\n",
      "[0.4947847  0.48315582]\n",
      "agriculture ['orange']\n",
      "[0.2092441]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "mining ['copper']\n",
      "[0.42395437]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "oil ['crude']\n",
      "[0.5401485]\n",
      "shipping ['ship', 'grain']\n",
      "[0.7106266  0.22629564]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "agriculture ['livestock']\n",
      "[0.64342374]\n",
      "banking ['money-supply']\n",
      "[0.44475213]\n",
      "banking ['money-supply']\n",
      "[0.44475213]\n",
      "agriculture ['sorghum', 'oat', 'barley', 'corn', 'wheat', 'grain']\n",
      "[0.50130355 0.26426148 0.45617163 0.5442389  0.5528396  0.4831558 ]\n",
      "agriculture ['meal-feed', 'soy-meal', 'soybean', 'oilseed']\n",
      "[0.41943818 0.3588092  0.4630654  0.46096462]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "shipping ['orange']\n",
      "[0.19749548]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "oil production ['crude']\n",
      "[0.42932284]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "strategic options ['acq']\n",
      "[0.14074041]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "agriculture ['cotton']\n",
      "[0.36291063]\n",
      "agriculture ['veg-oil', 'meal-feed', 'oilseed', 'grain']\n",
      "[0.19938153 0.41943818 0.46096462 0.48315582]\n",
      "monetary policy ['money-supply']\n",
      "[0.5266379]\n",
      "monetary policy ['money-supply']\n",
      "[0.5266379]\n",
      "banking ['money-supply']\n",
      "[0.44475213]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['money-supply']\n",
      "[0.27280203]\n",
      "mining ['copper']\n",
      "[0.42395437]\n",
      "monetary policy ['money-supply']\n",
      "[0.5266379]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['money-supply']\n",
      "[0.27280203]\n",
      "sales ['acq']\n",
      "[0.2674072]\n",
      "agriculture ['soybean', 'oilseed', 'corn', 'grain']\n",
      "[0.4630654  0.46096462 0.5442389  0.48315582]\n",
      "stock listings ['acq']\n",
      "[0.13607089]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "monetary policy ['money-fx']\n",
      "[0.5397276]\n",
      "oil ['crude']\n",
      "[0.5401485]\n",
      "economic policy ['money-fx']\n",
      "[0.36491323]\n",
      "reserves ['nat-gas', 'crude', 'acq']\n",
      "[0.24923065 0.26975384 0.23291224]\n",
      "monetary policy ['silver', 'gold', 'livestock', 'cotton', 'grain', 'money-fx']\n",
      "[0.22353119 0.3062849  0.14082009 0.14166817 0.17741552 0.5397276 ]\n",
      "agriculture ['corn', 'grain']\n",
      "[0.544239   0.48315582]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "reserves ['ship', 'grain']\n",
      "[0.2621023  0.15587556]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "stock listings ['acq']\n",
      "[0.13607089]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "reserves ['crude', 'ship']\n",
      "[0.2697538 0.2621023]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "trade_surplus ['trade']\n",
      "[0.4621315]\n",
      "monetary policy ['dlr', 'money-fx', 'interest']\n",
      "[0.06645725 0.53972757 0.43026763]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "banking ['money-supply']\n",
      "[0.44475213]\n",
      "banking ['dlr', 'money-fx']\n",
      "[0.18775165 0.49652755]\n",
      "pricing ['dlr', 'money-fx']\n",
      "[0.29368764 0.36576506]\n",
      "monetary policy ['dlr', 'money-fx']\n",
      "[0.06645723 0.53972757]\n",
      "monetary policy ['dlr', 'money-fx']\n",
      "[0.06645723 0.53972757]\n",
      "agriculture ['oat', 'sorghum', 'corn', 'wheat', 'grain']\n",
      "[0.26426148 0.50130355 0.5442389  0.5528395  0.48315585]\n",
      "financial losses ['interest', 'money-fx']\n",
      "[0.2838391 0.3815793]\n",
      "banking ['interest']\n",
      "[0.47025946]\n",
      "monetary policy ['interest']\n",
      "[0.43026766]\n",
      "labour_disputes ['ship']\n",
      "[0.16964543]\n",
      "oil production ['crude']\n",
      "[0.42932284]\n",
      "agriculture ['rice', 'grain']\n",
      "[0.4947847  0.48315582]\n",
      "oil ['rape-oil', 'soy-oil', 'veg-oil']\n",
      "[0.65424925 0.72730654 0.6725908 ]\n",
      "monetary policy ['money-supply', 'interest']\n",
      "[0.5266379  0.43026766]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "protectionism ['trade']\n",
      "[0.10732378]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "raw sugar prices ['sugar']\n",
      "[0.54427534]\n",
      "economic policy ['trade']\n",
      "[0.18585348]\n",
      "protectionism ['trade']\n",
      "[0.10732378]\n",
      "banking ['interest']\n",
      "[0.47025946]\n",
      "banking ['coffee']\n",
      "[0.26215813]\n",
      "cocoa ['cocoa']\n",
      "[0.9999999]\n",
      "agriculture ['rice', 'corn', 'grain']\n",
      "[0.4947847 0.544239  0.4831558]\n",
      "unemployment ['jobs']\n",
      "[0.565886]\n",
      "inflation ['cpi']\n",
      "[0.586895]\n",
      "banking ['money-fx', 'dlr']\n",
      "[0.49652764 0.18775168]\n",
      "agriculture ['cotton']\n",
      "[0.36291063]\n",
      "economic policy ['cpi', 'gnp', 'bop']\n",
      "[0.44327605 0.1780215  0.18185832]\n",
      "pricing ['copper']\n",
      "[0.24232607]\n",
      "banking ['money-fx', 'dlr']\n",
      "[0.49652764 0.18775168]\n",
      "lawsuits ['earn']\n",
      "[0.16936687]\n",
      "gains ['coffee']\n",
      "[0.29131773]\n",
      "mining ['acq']\n",
      "[0.23087595]\n",
      "trade deficit ['retail', 'income', 'cpi', 'wpi', 'trade']\n",
      "[0.25202093 0.35068455 0.28512624 0.11664513 0.42880237]\n",
      "banking ['earn']\n",
      "[0.38772967]\n",
      "financial statements ['interest']\n",
      "[0.2179449]\n",
      "mining ['iron-steel']\n",
      "[0.41845652]\n",
      "mining ['copper']\n",
      "[0.42395437]\n",
      "gains ['trade']\n",
      "[0.30518192]\n",
      "economic growth ['trade']\n",
      "[0.17316833]\n",
      "debt ['acq']\n",
      "[0.23788984]\n",
      "banking ['money-fx']\n",
      "[0.49652764]\n",
      "inflation ['cpi']\n",
      "[0.586895]\n",
      "stock listings ['acq']\n",
      "[0.13607089]\n",
      "trade ['trade']\n",
      "[1.]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "economic growth ['ipi']\n",
      "[0.18460433]\n",
      "monetary policy ['money-fx']\n",
      "[0.5397276]\n",
      "agriculture ['wheat', 'grain']\n",
      "[0.5528396  0.48315582]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "lawsuits ['meal-feed']\n",
      "[0.07175117]\n",
      "pricing ['groundnut', 'oilseed', 'rice', 'corn', 'grain']\n",
      "[0.17906366 0.15278003 0.16172351 0.19051829 0.16781986]\n",
      "cocoa ['cocoa']\n",
      "[0.9999999]\n",
      "pricing ['gold']\n",
      "[0.32276863]\n",
      "banking ['interest']\n",
      "[0.47025946]\n",
      "sales ['acq']\n",
      "[0.2674072]\n",
      "oil ['acq']\n",
      "[0.13822865]\n",
      "economic growth ['cpi', 'bop', 'jobs', 'gnp']\n",
      "[0.41151577 0.1603367  0.27320793 0.14014873]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "banking ['money-fx', 'interest']\n",
      "[0.49652764 0.47025946]\n",
      "pricing ['platinum', 'gold']\n",
      "[0.2761455  0.32276863]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "inflation ['wpi']\n",
      "[0.18497771]\n",
      "oil production ['nat-gas']\n",
      "[0.3125588]\n",
      "stock splits ['earn']\n",
      "[0.21117528]\n",
      "economic policy ['gnp']\n",
      "[0.1780215]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "monetary policy ['money-fx']\n",
      "[0.5397276]\n",
      "aluminum ['alum']\n",
      "[0.679158]\n",
      "banking ['interest', 'money-fx']\n",
      "[0.4702595  0.49652755]\n",
      "pricing ['sugar']\n",
      "[0.21647744]\n",
      "monetary policy ['money-fx']\n",
      "[0.5397276]\n",
      "banking ['money-fx', 'dlr']\n",
      "[0.49652764 0.18775168]\n",
      "economic policy ['trade', 'money-fx']\n",
      "[0.18585344 0.36491325]\n",
      "palm oil ['palm-oil', 'veg-oil']\n",
      "[0.96469706 0.5938508 ]\n",
      "pricing ['zinc']\n",
      "[0.16547738]\n",
      "pricing ['wpi']\n",
      "[0.2593106]\n",
      "economic growth ['gnp']\n",
      "[0.14014877]\n",
      "economic growth ['gnp']\n",
      "[0.14014877]\n",
      "monetary policy ['dlr']\n",
      "[0.06645723]\n",
      "economic growth ['gnp']\n",
      "[0.14014877]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "mining ['gold']\n",
      "[0.41335472]\n",
      "sales ['money-fx']\n",
      "[0.31704685]\n",
      "economic policy ['interest']\n",
      "[0.36334342]\n",
      "debt ['acq']\n",
      "[0.23788984]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial losses ['earn']\n",
      "[0.3400104]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "trade ['acq']\n",
      "[0.32165587]\n",
      "regulation ['tea']\n",
      "[0.15891124]\n",
      "economic policy ['cpi', 'bop', 'gnp']\n",
      "[0.44327605 0.1818583  0.17802149]\n",
      "pricing ['earn']\n",
      "[0.3792391]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "agriculture ['livestock']\n",
      "[0.64342374]\n",
      "natural gas ['nat-gas']\n",
      "[0.7379502]\n",
      "economic policy ['cpi']\n",
      "[0.4432761]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "banking ['acq']\n",
      "[0.24160089]\n",
      "gold_coins ['platinum', 'silver', 'gold']\n",
      "[0.45460865 0.5211791  0.64050746]\n",
      "banking ['money-supply', 'reserves']\n",
      "[0.4447522  0.36091277]\n",
      "monetary policy ['money-fx']\n",
      "[0.5397276]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "agriculture ['livestock', 'hog']\n",
      "[0.6434238  0.20108318]\n",
      "trade ['trade']\n",
      "[1.]\n",
      "trade ['trade']\n",
      "[1.]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "stock splits ['earn']\n",
      "[0.21117528]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "agriculture ['meal-feed', 'oilseed', 'grain']\n",
      "[0.41943815 0.46096462 0.4831558 ]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "monetary policy ['gnp', 'cpi', 'money-supply']\n",
      "[0.18364504 0.4828639  0.5266379 ]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "pricing ['wpi']\n",
      "[0.2593106]\n",
      "agriculture ['wheat', 'grain']\n",
      "[0.5528396  0.48315582]\n",
      "banking ['interest']\n",
      "[0.47025946]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "banking ['acq']\n",
      "[0.24160089]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "sales ['coffee']\n",
      "[0.25372508]\n",
      "expansion ['lei']\n",
      "[0.3086077]\n",
      "monetary policy ['money-supply']\n",
      "[0.5266379]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "monetary policy ['money-fx']\n",
      "[0.5397276]\n",
      "mining ['gold']\n",
      "[0.41335472]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "stock splits ['earn']\n",
      "[0.21117528]\n",
      "pricing ['lead']\n",
      "[0.25221527]\n",
      "banking ['earn']\n",
      "[0.38772967]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "interest_rates ['interest']\n",
      "[0.5742056]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "stock splits ['earn']\n",
      "[0.21117528]\n",
      "reserves ['earn']\n",
      "[0.3318557]\n",
      "pricing ['acq']\n",
      "[0.30495822]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "banking ['interest']\n",
      "[0.47025946]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "gains ['lei']\n",
      "[0.18725891]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "pricing ['fuel']\n",
      "[0.26534295]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "agriculture ['livestock']\n",
      "[0.64342374]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "mining ['alum']\n",
      "[0.3211206]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "aluminum ['alum', 'acq']\n",
      "[0.679158   0.29519483]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "sales ['sugar']\n",
      "[0.28651288]\n",
      "monetary policy ['money-fx']\n",
      "[0.5397276]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "economic policy ['trade']\n",
      "[0.18585348]\n",
      "agriculture ['grain']\n",
      "[0.4831558]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "palm oil ['palm-oil', 'veg-oil']\n",
      "[0.96469706 0.5938508 ]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "oil exports ['ship', 'crude']\n",
      "[0.32925785 0.30745992]\n",
      "financial losses ['earn']\n",
      "[0.3400104]\n",
      "financial losses ['earn']\n",
      "[0.3400104]\n",
      "stock listings ['acq']\n",
      "[0.13607089]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "agriculture ['carcass', 'livestock', 'acq']\n",
      "[0.38259035 0.6434237  0.16822676]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "monetary policy ['interest', 'money-fx']\n",
      "[0.43026766 0.53972757]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "earnings ['earn', 'acq']\n",
      "[0.6168959 0.1982504]\n",
      "sales ['acq']\n",
      "[0.2674072]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "banking ['interest']\n",
      "[0.47025946]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "inflation ['cpi']\n",
      "[0.586895]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "stock listings ['earn']\n",
      "[0.22140014]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial losses ['earn']\n",
      "[0.3400104]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "oil ['crude']\n",
      "[0.5401485]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial losses ['earn']\n",
      "[0.3400104]\n",
      "acquisitions ['rapeseed', 'oilseed']\n",
      "[0.20472729 0.09541484]\n",
      "financial losses ['earn']\n",
      "[0.3400104]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "oil ['nat-gas', 'crude']\n",
      "[0.3885746 0.5401486]\n",
      "pricing ['earn']\n",
      "[0.3792391]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "trade deficit ['trade']\n",
      "[0.4288024]\n",
      "pricing ['acq']\n",
      "[0.30495822]\n",
      "stock listings ['acq']\n",
      "[0.13607089]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "sales ['acq']\n",
      "[0.2674072]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "sales ['acq']\n",
      "[0.2674072]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "stock listings ['acq']\n",
      "[0.13607089]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "oil production ['earn', 'acq']\n",
      "[0.22586018 0.02847404]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "stock splits ['earn']\n",
      "[0.21117528]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial losses ['earn']\n",
      "[0.3400104]\n",
      "natural gas ['nat-gas']\n",
      "[0.7379502]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "trade deficit ['trade']\n",
      "[0.4288024]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "agriculture ['livestock', 'acq']\n",
      "[0.6434238  0.16822678]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "agriculture ['soybean', 'oilseed', 'wheat', 'corn', 'grain']\n",
      "[0.4630654  0.46096462 0.5528395  0.5442389  0.48315585]\n",
      "financial losses ['earn']\n",
      "[0.3400104]\n",
      "pricing ['earn']\n",
      "[0.3792391]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "stock splits ['earn']\n",
      "[0.21117528]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "sales ['acq']\n",
      "[0.2674072]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "regulation ['livestock', 'carcass']\n",
      "[0.22195956 0.13990754]\n",
      "banking ['money-fx', 'interest']\n",
      "[0.49652764 0.47025946]\n",
      "dividends ['earn']\n",
      "[0.43345833]\n",
      "pricing ['earn']\n",
      "[0.3792391]\n",
      "acquisitions ['acq']\n",
      "[0.28450087]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "takeover ['acq']\n",
      "[0.2984597]\n",
      "oil ['gas']\n",
      "[0.5958657]\n",
      "mergers ['acq']\n",
      "[0.26250795]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "earnings ['earn']\n",
      "[0.6168959]\n",
      "stock listings ['earn']\n",
      "[0.22140014]\n",
      "mining ['gold']\n",
      "[0.41335472]\n",
      "financial statements ['earn']\n",
      "[0.27848294]\n",
      "stock listings ['acq']\n",
      "[0.13607089]\n"
     ]
    }
   ],
   "source": [
    "correct = 0\n",
    "for index in range(len(predict_output)):\n",
    "    query_embedding = model.encode(predict_output[index])\n",
    "    print(predict_output[index], test_set[index])\n",
    "    passage_embedding = model.encode(test_set[index])\n",
    "    sim_scores = util.dot_score(query_embedding, passage_embedding)[0].numpy()\n",
    "    print(sim_scores)\n",
    "    rank_list = np.argsort(sim_scores)[-1]\n",
    "    if sim_scores[rank_list] >= 0.60:\n",
    "        correct +=1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "metadata": {},
   "outputs": [],
   "source": [
    "file1 = open('../datasets/Amazon-531/llm_cluster_result/update_labelspace.txt', 'r')\n",
    "documents = file1.readlines()  \n",
    "\n",
    "label_space = []\n",
    "for row in documents:\n",
    "    label = row.strip()\n",
    "    label_space.append(label)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "grocery_gourmet_food\n",
      "shopping_grocery 0.691828\n",
      "meat_poultry\n",
      "food_ingredients 0.5403876\n",
      "jerky\n",
      "snacks 0.4030494\n",
      "toys_games\n",
      "toys_games 0.9999999\n",
      "games\n",
      "games 1.0\n",
      "puzzles\n",
      "toys_puzzles 0.679267\n",
      "jigsaw_puzzles\n",
      "toys_puzzles 0.667863\n",
      "board_games\n",
      "board_games 0.99999994\n",
      "beverages\n",
      "food_beverages 0.81020904\n",
      "juices\n",
      "food_beverages 0.5057407\n",
      "beauty\n",
      "beauty 1.0\n",
      "makeup\n",
      "beauty_makeup 0.7922852\n",
      "nails\n",
      "beauty_nail_care 0.6575123\n",
      "arts_crafts\n",
      "toys_crafts 0.8020563\n",
      "drawing_painting_supplies\n",
      "crafting_supplies 0.6362072\n",
      "action_toy_figures\n",
      "toys_action_figures 0.9660249\n",
      "figures\n",
      "toys_action_figures 0.53402567\n",
      "dolls_accessories\n",
      "toys_dolls 0.8014587\n",
      "dolls\n",
      "toys_dolls 0.7617769\n",
      "card_games\n",
      "board_games 0.7792025\n",
      "drawing_sketching_tablets\n",
      "technology_gadgets 0.37693655\n",
      "baby_toddler_toys\n",
      "parenting_toys 0.7736389\n",
      "shape_sorters\n",
      "shopping_beauty 0.31531602\n",
      "health_personal_care\n",
      "health_personal_care 1.0\n",
      "personal_care\n",
      "health_personal_care 0.855265\n",
      "deodorants_antiperspirants\n",
      "personal_care_deodorants 0.79440784\n",
      "nutrition_wellness\n",
      "health_wellness 0.8753002\n",
      "nutrition_bars_drinks\n",
      "food_beverages 0.670789\n",
      "learning_education\n",
      "education_kids_learning 0.8764521\n",
      "habitats\n",
      "pets 0.46499\n",
      "electronics_for_kids\n",
      "electronics 0.732522\n",
      "household_supplies\n",
      "household_supplies 0.9999998\n",
      "household_batteries\n",
      "household_supplies 0.5883405\n",
      "push_pull_toys\n",
      "toys_action_figures 0.64195186\n",
      "stuffed_animals_plush\n",
      "pet_toys 0.70032185\n",
      "tricycles\n",
      "toys_rc_cars 0.34333384\n",
      "scooters_wagons\n",
      "toys_rc_cars 0.52050877\n",
      "clay_dough\n",
      "food_desserts 0.47842833\n",
      "health_care\n",
      "health_personal_care 0.835667\n",
      "allergy\n",
      "parenting_allergies 0.66637254\n",
      "baby_products\n",
      "products_for_children 0.74851775\n",
      "gear\n",
      "parenting_baby_gear 0.61765146\n",
      "baby_gyms_playmats\n",
      "toys_games 0.609764\n",
      "shaving_hair_removal\n",
      "[grooming_shaving] 0.7888686\n",
      "skin_care\n",
      "skincare 0.86310947\n",
      "face\n",
      "beauty 0.51505935\n",
      "animals_figures\n",
      "toys_action_figures 0.6519981\n",
      "feminine_care\n",
      "beauty_personal_care 0.64618814\n",
      "music_sound\n",
      "music_instruments 0.7788059\n",
      "oral_hygiene\n",
      "oral_care 0.8432996\n",
      "grown_up_toys\n",
      "parenting_toys 0.7714076\n",
      "dress_up_pretend_play\n",
      "toys_action_figures 0.41782522\n",
      "pretend_play\n",
      "board_games 0.47085226\n",
      "novelty_gag_toys\n",
      "toys_puzzles 0.68120027\n",
      "bath_body\n",
      "bath_time 0.7481395\n",
      "cleansers\n",
      "household_cleaning 0.46510172\n",
      "playsets\n",
      "toy_food_playsets 0.6392624\n",
      "d_puzzles\n",
      "toys_puzzles 0.6446631\n",
      "dollhouses\n",
      "toys_dolls 0.60249627\n",
      "lip_care_products\n",
      "beauty_lip_care 0.7697423\n",
      "tools_accessories\n",
      "pet_accessories 0.6183871\n",
      "nail_tools\n",
      "beauty_nail_care 0.6544318\n",
      "eye_care\n",
      "health_eye_care 0.80652064\n",
      "pill_cases_splitters\n",
      "health_supplements 0.3516294\n",
      "hair_care\n",
      "beauty_hair_care 0.8634659\n",
      "styling_products\n",
      "beauty_products 0.60306466\n",
      "electronic_toys\n",
      "toys_gifts 0.74850875\n",
      "body\n",
      "beauty 0.48257893\n",
      "toy_balls\n",
      "toys_games 0.74296224\n",
      "eyes\n",
      "health_eye_care 0.5520842\n",
      "trading_card_games\n",
      "board_games 0.6375363\n",
      "foot_care\n",
      "health_foot_care 0.8400959\n",
      "hands_nails\n",
      "beauty_nail_care 0.6891604\n",
      "sun\n",
      "beauty_tanning 0.45047075\n",
      "medical_supplies_equipment\n",
      "health_medical_equipment 0.87382436\n",
      "daily_living_aids\n",
      "sleep_aids 0.6079793\n",
      "baby_child_care\n",
      "parenting_baby_care 0.91691566\n",
      "paper_plastic\n",
      "toys_crafts 0.49131316\n",
      "incontinence\n",
      "seniors_incontinence 0.7660973\n",
      "shampoos\n",
      "fragrances 0.51188254\n",
      "conditioners\n",
      "fragrances 0.37163103\n",
      "music_players_karaoke\n",
      "music_instruments 0.62001574\n",
      "cough_cold\n",
      "health_cough_drops 0.5197418\n",
      "bath\n",
      "bath_time 0.75685036\n",
      "tests\n",
      "education_science_project 0.38804686\n",
      "building_toys\n",
      "toys_construction 0.92410004\n",
      "building_sets\n",
      "toys_building_sets 0.70817506\n",
      "stress_reduction\n",
      "mental_health 0.41591105\n",
      "family_planning_contraceptives\n",
      "reproductive_health 0.58861434\n",
      "vitamins_supplements\n",
      "health_supplements 0.8449036\n",
      "hair_color\n",
      "haircare_natural_black_hair 0.67135894\n",
      "pain_relievers\n",
      "health_pain_management 0.75125706\n",
      "cotton_swabs\n",
      "pet_clothing 0.43016106\n",
      "styling_tools\n",
      "beauty_makeup_tools 0.5858782\n",
      "first_aid\n",
      "family_care 0.43496957\n",
      "scrubs_body_treatments\n",
      "personal_care_skincare 0.5201682\n",
      "cleaning_tools\n",
      "household_cleaning 0.588032\n",
      "pegged_puzzles\n",
      "toys_puzzles 0.6787535\n",
      "diabetes\n",
      "sexual_health 0.38038522\n",
      "magic_kits_accessories\n",
      "pet_accessories 0.58526146\n",
      "gifts\n",
      "gift_ideas 0.79013884\n",
      "albums\n",
      "music_instruments 0.4365064\n",
      "crib_toys_attachments\n",
      "parenting_toys 0.6733558\n",
      "digestion_nausea\n",
      "health_digestive_issues 0.5990931\n",
      "electronic_pets\n",
      "pets 0.67213917\n",
      "sexual_wellness\n",
      "sexual_health 0.87169784\n",
      "safer_sex\n",
      "sexual_health 0.6170036\n",
      "thermometers\n",
      "health_medical_equipment 0.3526792\n",
      "stacking_nesting_toys\n",
      "parenting_toys 0.6393298\n",
      "makeup_remover\n",
      "beauty_makeup 0.6431559\n",
      "temporary_tattoos\n",
      "personal_care_sensitive_skin 0.46036446\n",
      "sports_outdoor_play\n",
      "outdoor_recreation 0.767135\n",
      "play_tents_tunnels\n",
      "camping_equipment 0.48484114\n",
      "science\n",
      "education_science_project 0.64922667\n",
      "sports\n",
      "sports_swimming 0.7455839\n",
      "bath_toys\n",
      "toys_dolls 0.70922494\n",
      "puppets\n",
      "toys_dolls 0.529217\n",
      "systems_accessories\n",
      "car_accessories 0.6363742\n",
      "health_monitors\n",
      "health_wellness 0.6108247\n",
      "inflatable_bouncers\n",
      "sports_equipment 0.3598334\n",
      "hobbies\n",
      "leisure_winter_activities 0.5509112\n",
      "model_building_kits_tools\n",
      "toys_building_sets 0.458224\n",
      "blackboards_whiteboards\n",
      "board_games 0.5737764\n",
      "pools_water_fun\n",
      "sports_swimming 0.55212337\n",
      "rattles\n",
      "snacks 0.34592715\n",
      "sandboxes_accessories\n",
      "pet_accessories 0.57172877\n",
      "activity_play_centers\n",
      "board_games 0.4625066\n",
      "car_seat_stroller_toys\n",
      "toys_rc_cars 0.7493552\n",
      "feeding\n",
      "breastfeeding 0.52343273\n",
      "bottle_feeding\n",
      "breastfeeding 0.4524619\n",
      "breastfeeding\n",
      "breastfeeding 1.0\n",
      "diapering\n",
      "breastfeeding 0.47642726\n",
      "diaper_changing_kits\n",
      "parenting_baby_gear 0.549549\n",
      "puzzle_accessories\n",
      "toys_puzzles 0.72032505\n",
      "diaper_pails_refills\n",
      "pet_litter_boxes 0.5190348\n",
      "safety\n",
      "car_safety 0.7270533\n",
      "bathroom_safety\n",
      "home_safety 0.64045286\n",
      "massage_relaxation\n",
      "health_pain_management 0.49945945\n",
      "gates_doorways\n",
      "toys_building_sets 0.4378724\n",
      "nursery\n",
      "parenting_infants 0.5713642\n",
      "furniture\n",
      "furniture_assembly 0.7608812\n",
      "monitors\n",
      "parenting_baby_monitors 0.50058436\n",
      "cloth_diapers\n",
      "pet_clothing 0.5547675\n",
      "plush_backpacks_purses\n",
      "toys_gifts 0.5582824\n",
      "statues\n",
      "toys_action_figures 0.3529261\n",
      "bathing_skin_care\n",
      "personal_care_skincare 0.76672333\n",
      "bathing_tubs_seats\n",
      "bath_time 0.60878384\n",
      "vehicles_remote_control\n",
      "car_accessories 0.52386004\n",
      "play_vehicles\n",
      "toys_games_slot_cars 0.6454979\n",
      "backpacks_carriers\n",
      "travel_accessories 0.5831225\n",
      "craft_kits\n",
      "crafting_supplies 0.7108126\n",
      "car_seats_accessories\n",
      "car_accessories 0.86429954\n",
      "car_seats\n",
      "car_accessories 0.643474\n",
      "nursery_d_cor\n",
      "parenting_baby_care 0.54195964\n",
      "hammering_pounding_toys\n",
      "toys_construction 0.5945767\n",
      "bedding\n",
      "home_furniture 0.4244517\n",
      "play_trains_railway_sets\n",
      "toys_building_sets 0.602296\n",
      "rockets\n",
      "games 0.43662184\n",
      "stacking_blocks\n",
      "pet_litter_boxes 0.2535319\n",
      "diaper_bags\n",
      "pet_litter_boxes 0.49846676\n",
      "strollers\n",
      "parenting_baby_carriers 0.4317517\n",
      "gym_sets_swings\n",
      "fitness_equipment 0.5044326\n",
      "pregnancy_maternity\n",
      "pregnancy_health 0.7491415\n",
      "maternity_pillows\n",
      "parenting_baby_care 0.5957999\n",
      "rocking_spring_ride_ons\n",
      "toys_action_figures 0.44427854\n",
      "braces\n",
      "dental_care 0.4165328\n",
      "accessories\n",
      "car_accessories 0.66556144\n",
      "vehicle_playsets\n",
      "toy_food_playsets 0.65220743\n",
      "doll_accessories\n",
      "toys_dolls 0.7671263\n",
      "pet_supplies\n",
      "pet_supplies 1.0000001\n",
      "cats\n",
      "pets 0.76503944\n",
      "litter_housebreaking\n",
      "pet_litter_boxes 0.62701285\n",
      "spinning_tops\n",
      "toys_dolls 0.40470532\n",
      "sets\n",
      "toys_building_sets 0.44796643\n",
      "travel_games\n",
      "board_games 0.69842905\n",
      "pillows_stools\n",
      "home_furniture 0.53610265\n",
      "battling_tops\n",
      "board_games 0.41534692\n",
      "cameras_camcorders\n",
      "electronics_camera 0.77405083\n",
      "dance_mats\n",
      "toys_dolls 0.47258276\n",
      "food\n",
      "snacks 0.7132679\n",
      "radio_control\n",
      "camping_equipment 0.32660174\n",
      "grooming_healthcare_kits\n",
      "personal_care_grooming 0.7310667\n",
      "balls\n",
      "games 0.5028342\n",
      "tile_games\n",
      "board_games 0.70119107\n",
      "potty_training\n",
      "parenting_potty_training 0.8577631\n",
      "potties_seats\n",
      "parenting_potty_training 0.5252403\n",
      "highchairs_booster_seats\n",
      "car_accessories 0.44321352\n",
      "stuffed_animals_toys\n",
      "pet_toys 0.79919773\n",
      "dvd_games\n",
      "toys_games 0.6384066\n",
      "edge_corner_guards\n",
      "beauty_nail_care 0.36196786\n",
      "basic_life_skills_toys\n",
      "educational_toys 0.6606164\n",
      "activity_centers_entertainers\n",
      "leisure_winter_activities 0.5212015\n",
      "thermometer_accessories\n",
      "car_accessories 0.48008353\n",
      "wipes_holders\n",
      "car_accessories 0.42231017\n",
      "gift_sets\n",
      "gift_ideas 0.7317287\n",
      "solid_feeding\n",
      "food_snacks 0.4514588\n",
      "joggers\n",
      "sports_swimming 0.41466093\n",
      "facial_steamers\n",
      "beauty_products 0.53426945\n",
      "kites_wind_spinners\n",
      "camping_equipment 0.4360506\n",
      "dogs\n",
      "pets 0.81711066\n",
      "toys\n",
      "toys_games 0.79829574\n",
      "walkers\n",
      "toys_dora_explorers 0.3564979\n",
      "slumber_bags\n",
      "pet_litter_boxes 0.43581876\n",
      "die_cast_vehicles\n",
      "car_accessories 0.49142477\n",
      "easels\n",
      "gardening_equipment 0.31907183\n",
      "lips\n",
      "beauty_lip_care 0.6728814\n",
      "tea\n",
      "beverages_tea 0.779098\n",
      "reading_writing\n",
      "education_kids_learning 0.35679907\n",
      "gourmet_gifts\n",
      "gift_ideas 0.65831935\n",
      "snack_gifts\n",
      "food_snacks 0.7827213\n",
      "stacking_games\n",
      "board_games 0.62943006\n",
      "sauces_dips\n",
      "food_desserts 0.5538307\n",
      "sauces\n",
      "food_desserts 0.51618993\n",
      "breakfast_foods\n",
      "food_ingredients 0.6371244\n",
      "cereals\n",
      "snacks 0.5947246\n",
      "shopping_cart_covers\n",
      "shopping_bargains 0.5524806\n",
      "pantry_staples\n",
      "shopping_grocery 0.5629134\n",
      "scaled_model_vehicles\n",
      "car_accessories 0.4263538\n",
      "cooking_baking_supplies\n",
      "crafting_supplies 0.6337205\n",
      "personal_video_players_accessories\n",
      "gaming_electronics 0.54481316\n",
      "fragrance\n",
      "fragrances 0.941723\n",
      "women_s\n",
      "male_health 0.51048076\n",
      "keepsakes\n",
      "snacks 0.43791264\n",
      "treats\n",
      "snacks 0.5549176\n",
      "swings\n",
      "outdoor_recreation 0.35858607\n",
      "trains_accessories\n",
      "travel_accessories 0.6827417\n",
      "disposable_diapers\n",
      "seniors_incontinence 0.45778984\n",
      "plug_play_video_games\n",
      "gaming_electronics 0.6207901\n",
      "floor_puzzles\n",
      "toys_puzzles 0.57881117\n",
      "fresh_flowers_live_indoor_plants\n",
      "gardening_equipment 0.44525802\n",
      "live_indoor_plants\n",
      "gardening_equipment 0.46993977\n",
      "weight_loss_products\n",
      "beauty_products 0.5863895\n",
      "smoking_cessation\n",
      "health_cough_drops 0.45403606\n",
      "beauty_fashion\n",
      "fashion_beauty 0.9747509\n",
      "mirrors\n",
      "beauty 0.34263498\n",
      "coffee\n",
      "beverages_tea 0.59041786\n",
      "cabinet_locks_straps\n",
      "furniture_assembly 0.34461063\n",
      "plush_pillows\n",
      "toys_dolls 0.5395256\n",
      "floor_games\n",
      "board_games 0.7700487\n",
      "makeup_brushes_tools\n",
      "beauty_makeup_tools 0.82701313\n",
      "alternative_medicine\n",
      "health_supplements 0.5219539\n",
      "changing_table_pads_covers\n",
      "furniture_assembly 0.26948112\n",
      "men_s\n",
      "male_health 0.5863921\n",
      "step_stools\n",
      "shoes_insoles 0.51210356\n",
      "rails_rail_guards\n",
      "home_safety 0.31569988\n",
      "laundry\n",
      "household_cleaning 0.521786\n",
      "women_s_health\n",
      "male_health 0.72358906\n",
      "standard\n",
      "fashion 0.3226766\n",
      "beds_furniture\n",
      "home_furniture 0.78122574\n",
      "herbs\n",
      "supplements 0.5116645\n",
      "sleep_positioners\n",
      "sleep_aids 0.6069308\n",
      "health_supplies\n",
      "health_medical_supplies 0.9302149\n",
      "breakfast_cereal_bars\n",
      "food_snacks 0.61998767\n",
      "body_art\n",
      "beauty_makeup 0.6408077\n",
      "condiments\n",
      "food_ingredients 0.5473248\n",
      "breads_bakery\n",
      "food_desserts 0.5917517\n",
      "cakes\n",
      "food_desserts 0.5785278\n",
      "dried_beans\n",
      "food_snacks 0.4647717\n",
      "household_cleaning\n",
      "household_cleaning 1.0\n",
      "collars\n",
      "pets 0.5594274\n",
      "educational_repellents\n",
      "education_kids_learning 0.5807549\n",
      "dessert_gifts\n",
      "food_desserts 0.7659679\n",
      "adult_toys_games\n",
      "toys_games 0.8788855\n",
      "teddy_bears\n",
      "toys_dolls 0.6211635\n",
      "therapeutic_skin_care\n",
      "skincare 0.7714683\n",
      "candy_chocolate\n",
      "food_snacks 0.62959254\n",
      "chocolate_assortments\n",
      "toys_gifts 0.5359387\n",
      "sand_water_tables\n",
      "plumbing_maintenance 0.35599333\n",
      "slot_cars\n",
      "toys_games_slot_cars 0.79053825\n",
      "chocolate\n",
      "snacks 0.5309856\n",
      "soft_drinks\n",
      "food_beverages 0.6827044\n",
      "snack_food\n",
      "food_snacks 0.939947\n",
      "chips_crisps\n",
      "food_snacks 0.5743151\n",
      "licorice\n",
      "health_pests_lice 0.40795937\n",
      "feeding_watering_supplies\n",
      "household_supplies 0.5508654\n",
      "blasters_foam_play\n",
      "toy_food_playsets 0.4657282\n",
      "chocolate_bars\n",
      "food_snacks 0.5638356\n",
      "meat_seafood\n",
      "food_snacks 0.63665956\n",
      "wild_game_fowl\n",
      "pet_care_feline 0.5030972\n",
      "spices_seasonings\n",
      "cooking_techniques 0.51523316\n",
      "cookies\n",
      "snacks 0.47560555\n",
      "training_behavior_aids\n",
      "pet_training 0.57317376\n",
      "gardening_tools\n",
      "gardening_equipment 0.75727546\n",
      "bathroom_aids_safety\n",
      "home_safety 0.5411308\n",
      "pogo_sticks_hoppers\n",
      "toy_food_playsets 0.51114196\n",
      "powdered_drink_mixes\n",
      "food_beverages 0.53520554\n",
      "playards\n",
      "toy_food_playsets 0.51315534\n",
      "gag_toys_practical_jokes\n",
      "toys_puzzles 0.62954044\n",
      "baby_food\n",
      "food_snacks 0.73446196\n",
      "baby_formula\n",
      "parenting_baby_care 0.5265288\n",
      "lighters\n",
      "fragrances 0.3861782\n",
      "dried_fruit_raisins\n",
      "food_desserts 0.5568162\n",
      "money_banks\n",
      "savings_deals 0.606047\n",
      "marble_runs\n",
      "board_games 0.5054505\n",
      "game_collections\n",
      "games_family 0.61184233\n",
      "kitchen_safety\n",
      "home_safety 0.6703477\n",
      "fish_aquatic_pets\n",
      "pets 0.56916296\n",
      "gum\n",
      "oral_care 0.5376073\n",
      "outdoor_safety\n",
      "car_safety 0.67118585\n",
      "hair_nails\n",
      "beauty_nail_care 0.761239\n",
      "aquarium_lights\n",
      "camping_equipment 0.40850702\n",
      "blocks\n",
      "games 0.3853847\n",
      "tandem\n",
      "parenting_baby_carriers 0.32762712\n",
      "occupational_physical_therapy_aids\n",
      "health_medical_equipment 0.5582335\n",
      "packaged_meals_side_dishes\n",
      "food_snacks 0.5393426\n",
      "indoor_climbers_play_structures\n",
      "toys_building_sets 0.4932606\n",
      "pumps_filters\n",
      "fashion_accessories_socks 0.29791707\n",
      "beds_accessories\n",
      "pet_accessories 0.5641886\n",
      "energy_drinks\n",
      "food_beverages 0.6761975\n",
      "sleep_snoring\n",
      "sleep_aids 0.6723211\n",
      "geography\n",
      "outdoor_recreation 0.3371907\n",
      "small_animals\n",
      "pets 0.60151356\n",
      "houses_habitats\n",
      "home_furniture 0.56173337\n",
      "dairy_eggs\n",
      "food_desserts 0.4920345\n",
      "cheese\n",
      "food_ingredients 0.48698488\n",
      "travel_systems\n",
      "travel_accessories 0.6937096\n",
      "walkie_talkies\n",
      "toys_dora_explorers 0.43794394\n",
      "mobility_aids_equipment\n",
      "fitness_equipment 0.5703108\n",
      "sexual_enhancers\n",
      "sexual_health 0.5795161\n",
      "dips\n",
      "snacks 0.4498436\n",
      "dollhouse_accessories\n",
      "toys_dolls 0.674942\n",
      "party_mix\n",
      "games_family 0.40973967\n",
      "bathing_accessories\n",
      "bath_time 0.59344566\n",
      "grooming\n",
      "grooming 1.0\n",
      "baby_seats\n",
      "parenting_baby_carriers 0.55828273\n",
      "wind_up_toys\n",
      "toys_games 0.69186765\n",
      "sensual_delights\n",
      "beauty_products 0.5267487\n",
      "hot_cocoa\n",
      "food_desserts 0.48531544\n",
      "dishwashing\n",
      "household_cleaning 0.45282298\n",
      "carriers_strollers\n",
      "parenting_baby_carriers 0.6780076\n",
      "flash_cards\n",
      "toys_games_slot_cars 0.48113525\n",
      "brain_teasers\n",
      "toys_puzzles 0.44559574\n",
      "nesting_dolls\n",
      "toys_dolls 0.7291381\n",
      "test_kits\n",
      "parenting_supplies 0.44125193\n",
      "lightweight\n",
      "reviews 0.34888142\n",
      "hair_loss_products\n",
      "discontinued_products 0.59468234\n",
      "water_treatments\n",
      "plumbing_maintenance 0.4787728\n",
      "birds\n",
      "pets 0.56893784\n",
      "hair_scalp_treatments\n",
      "haircare_natural_black_hair 0.59265184\n",
      "cages_accessories\n",
      "pet_accessories 0.6758593\n",
      "gummy_candies\n",
      "food_snacks 0.49352303\n",
      "gummy_candy\n",
      "food_snacks 0.52653646\n",
      "jerky_dried_meats\n",
      "food_snacks 0.52585614\n",
      "houses\n",
      "home_kitchen 0.5709201\n",
      "chocolate_truffles\n",
      "food_desserts 0.5506828\n",
      "ear_care\n",
      "beauty_hair_care 0.530709\n",
      "milk\n",
      "breastfeeding 0.52836955\n",
      "pizza_crusts\n",
      "food_desserts 0.5813161\n",
      "fresh_baked_cookies\n",
      "food_desserts 0.41001576\n",
      "hard_candies\n",
      "food_snacks 0.46325725\n",
      "sports_supplements\n",
      "health_supplements 0.7954945\n",
      "baking_mixes\n",
      "cooking_techniques 0.54259133\n",
      "crackers\n",
      "snacks 0.44251472\n",
      "pork_rinds\n",
      "food_snacks 0.50642014\n",
      "pasta_noodles\n",
      "food_snacks 0.529459\n",
      "trail_mix\n",
      "camping_equipment 0.42405066\n",
      "carriers_travel_products\n",
      "travel_accessories 0.6610077\n",
      "produce\n",
      "recipes 0.4585774\n",
      "fresh_fruits\n",
      "food_desserts 0.55883604\n",
      "toaster_pastries\n",
      "food_desserts 0.48191434\n",
      "rice_cakes\n",
      "food_desserts 0.6660683\n",
      "chips\n",
      "snacks 0.564716\n",
      "puffed_snacks\n",
      "food_snacks 0.7824595\n",
      "pretzels\n",
      "snacks 0.56515414\n",
      "mathematics_counting\n",
      "None 0.2644489\n",
      "suckers_lollipops\n",
      "toy_food_playsets 0.45064518\n",
      "popcorn\n",
      "snacks 0.53359175\n",
      "toy_banks\n",
      "toys_dolls 0.7037043\n",
      "training_pants\n",
      "fitness_equipment 0.5585617\n",
      "tea_gifts\n",
      "gift_baby 0.70273495\n",
      "oils\n",
      "fragrances 0.58896625\n",
      "aquarium_hoods\n",
      "camping_equipment 0.4193874\n",
      "tortillas\n",
      "snacks 0.4168812\n",
      "cheese_gifts\n",
      "gift_baby 0.7318188\n",
      "doors\n",
      "home_kitchen 0.43245322\n",
      "standard_playing_card_decks\n",
      "board_games 0.43864006\n",
      "fudge\n",
      "snacks 0.4129805\n",
      "syrups\n",
      "food_beverages 0.48614392\n",
      "printing_stamping\n",
      "shipping_delivery 0.26778233\n",
      "toy_gift_sets\n",
      "toys_gifts 0.8602185\n",
      "canned_jarred_food\n",
      "food_snacks 0.56587327\n",
      "fresh_vegetables\n",
      "food_snacks 0.48781732\n",
      "apparel_accessories\n",
      "fashion_accessories_socks 0.7796695\n",
      "candy_gifts\n",
      "toys_gifts 0.7845431\n",
      "chewing_gum\n",
      "oral_care 0.5318575\n",
      "puzzle_play_mats\n",
      "toys_puzzles 0.64652526\n",
      "electrical_safety\n",
      "car_safety 0.61811805\n",
      "sugars_sweeteners\n",
      "food_desserts 0.54604006\n",
      "marble_games\n",
      "board_games 0.77889663\n",
      "miniatures\n",
      "toys_crafts 0.46468234\n",
      "finger_boards_finger_bikes\n",
      "board_games 0.5056462\n",
      "coconut_water\n",
      "beverages_tea 0.53387535\n",
      "handheld_games\n",
      "board_games 0.61401105\n",
      "slime_putty_toys\n",
      "toys_dolls 0.61089605\n",
      "pastries\n",
      "food_desserts 0.539866\n",
      "health_baby_care\n",
      "parenting_baby_care 0.81431735\n",
      "teethers\n",
      "dental_care 0.5387239\n",
      "butter\n",
      "snacks 0.46582615\n",
      "fruits\n",
      "snacks 0.585858\n",
      "chocolate_pretzels\n",
      "food_snacks 0.5704191\n",
      "breakfast_bakery\n",
      "food_desserts 0.60949844\n",
      "stickers\n",
      "toys_rc_cars 0.39457422\n",
      "soaps_cleansers\n",
      "household_cleaning 0.43593237\n",
      "sauces_gifts\n",
      "gift_ideas 0.70993584\n",
      "fitness_equipment\n",
      "fitness_equipment 0.99999994\n",
      "water\n",
      "beverages_tea 0.48802373\n",
      "portable_changing_pads\n",
      "pet_accessories 0.33188835\n",
      "dice_gaming_dice\n",
      "games_family 0.55085766\n",
      "pacifiers_accessories\n",
      "pet_accessories 0.6034188\n",
      "bars\n",
      "snacks 0.45322546\n",
      "cocktail_mixers\n",
      "food_beverages 0.48301104\n",
      "aquariums\n",
      "sports_swimming 0.4329322\n",
      "ball_pits_accessories\n",
      "sports_equipment 0.6179435\n",
      "seafood\n",
      "snacks 0.53124034\n",
      "bags_cases\n",
      "pet_litter_boxes 0.42449683\n",
      "jelly_beans\n",
      "food_snacks 0.54296756\n",
      "novelty_spinning_tops\n",
      "toys_puzzles 0.4075098\n",
      "automatic_feeders\n",
      "household_supplies 0.34624916\n",
      "mints\n",
      "fragrances 0.38096583\n",
      "makeup_sets\n",
      "beauty_makeup 0.69203025\n",
      "cleaners\n",
      "household_cleaning 0.5954433\n",
      "fresh_cut_flowers\n",
      "natural_beauty 0.48520237\n",
      "jams\n",
      "snacks 0.3860553\n",
      "prams\n",
      "scams_deceptive_practices 0.38424987\n",
      "nuts_seeds\n",
      "food_snacks 0.56763685\n",
      "taffy\n",
      "snacks 0.39832747\n",
      "bunny_rabbit_central\n",
      "toys_dora_explorers 0.42468137\n",
      "rabbit_hutches\n",
      "pet_clothing 0.4112368\n",
      "aquarium_d_cor\n",
      "pet_care 0.41340646\n",
      "granola_bars\n",
      "food_snacks 0.5207941\n",
      "viewfinders\n",
      "electronics_camera 0.3428858\n",
      "harnesses_leashes\n",
      "pet_accessories 0.49325058\n",
      "foie_gras_p_t_s\n",
      "pet_care_feline 0.33615395\n",
      "game_accessories\n",
      "toys_games 0.7022549\n",
      "p_t_s\n",
      "parenting_baby_gear 0.3529114\n",
      "game_room_games\n",
      "board_games 0.7223006\n",
      "cages\n",
      "pets 0.5216582\n",
      "non_slip_bath_mats\n",
      "bath_time 0.37637427\n",
      "halva\n",
      "beauty 0.29979032\n",
      "seafood_gifts\n",
      "toys_gifts 0.6585078\n",
      "stimulants\n",
      "supplements 0.38708925\n",
      "beanbags_foot_bags\n",
      "shoes_insoles 0.46199673\n",
      "shampoo_conditioner_sets\n",
      "haircare_natural_black_hair 0.40135923\n",
      "nut_clusters\n",
      "food_snacks 0.44815865\n",
      "raisins\n",
      "food_desserts 0.46932682\n",
      "breadcrumbs\n",
      "snacks 0.3343004\n",
      "extracts_flavoring\n",
      "food_ingredients 0.49390295\n",
      "plush_puppets\n",
      "toys_dolls 0.6907453\n",
      "shampoo_plus_conditioner\n",
      "haircare_natural_black_hair 0.4782611\n",
      "salsas\n",
      "recipes 0.5115104\n",
      "memorials\n",
      "outdoor_recreation 0.31859162\n",
      "die_cast_toy_vehicles\n",
      "toys_rc_cars 0.70695114\n",
      "aquarium_starter_kits\n",
      "camping_equipment 0.41897073\n",
      "coffee_gifts\n",
      "gift_baby 0.6900119\n",
      "air_fresheners\n",
      "household_cleaning 0.4376104\n",
      "fruit_leather\n",
      "food_snacks 0.53655887\n",
      "granola_trail_mix_bars\n",
      "food_snacks 0.43340653\n",
      "sugar_substitutes\n",
      "food_ingredients 0.45117605\n",
      "bacon\n",
      "recipes 0.42145628\n",
      "cat_flaps\n",
      "pet_care_feline 0.53788847\n",
      "aquarium_heaters\n",
      "camping_equipment 0.4212565\n",
      "hair_relaxers\n",
      "beauty_hair_care 0.58272564\n",
      "breads\n",
      "recipes 0.56039006\n",
      "packaged_breads\n",
      "household_supplies 0.43987393\n",
      "sausages\n",
      "snacks 0.439336\n",
      "dessert_toppings\n",
      "food_desserts 0.8350572\n",
      "diaper_stackers_caddies\n",
      "parenting_baby_care 0.49125025\n",
      "prisms_kaleidoscopes\n",
      "music_instruments 0.46398854\n",
      "maternity\n",
      "parenting_baby_care 0.6319016\n",
      "crackers_biscuits\n",
      "food_snacks 0.53012323\n",
      "coin_collecting\n",
      "value_for_money 0.48070872\n",
      "chocolate_gifts\n",
      "gift_baby 0.7724449\n",
      "kickball_playground_balls\n",
      "toys_games 0.5435677\n",
      "hair_perms_texturizers\n",
      "haircare_natural_black_hair 0.50301516\n",
      "yo_yos\n",
      "gift_baby 0.33849072\n",
      "flours_meals\n",
      "food_desserts 0.5972081\n",
      "beef\n",
      "recipes 0.39525592\n",
      "molding_sculpting_sticks\n",
      "crafting_supplies 0.41305834\n",
      "washcloths_towels\n",
      "pet_clothing 0.52108693\n",
      "fruit_gifts\n",
      "toys_gifts 0.73288697\n",
      "stuffing\n",
      "snacks 0.45363304\n",
      "baking_powder\n",
      "food_desserts 0.4420034\n",
      "cereal\n",
      "snacks 0.5651985\n",
      "exotic_meats\n",
      "food_snacks 0.48128685\n",
      "breadsticks\n",
      "recipes 0.48620042\n",
      "eggs\n",
      "snacks 0.48999768\n",
      "cloth_diaper_accessories\n",
      "fashion_accessories_socks 0.5787082\n",
      "carriers\n",
      "parenting_baby_carriers 0.61231554\n",
      "toffee\n",
      "food_beverages 0.40775463\n",
      "hair_coloring_tools\n",
      "beauty_makeup_tools 0.55431104\n",
      "chocolate_covered_fruit\n",
      "food_desserts 0.6313312\n",
      "caramels\n",
      "snacks 0.48098856\n",
      "assortments\n",
      "fashion 0.4299007\n",
      "aromatherapy\n",
      "fragrances 0.5878869\n",
      "seat_covers\n",
      "car_accessories 0.45498455\n",
      "bondage_gear_accessories\n",
      "car_accessories 0.5726552\n",
      "sun_protection\n",
      "beauty_tanning 0.52400696\n",
      "dinners\n",
      "snacks 0.61076546\n",
      "fruit\n",
      "food_desserts 0.56024003\n",
      "aquarium_stands\n",
      "outdoor_recreation 0.38596296\n",
      "teaching_clocks\n",
      "education_kids_learning 0.43086657\n",
      "milk_substitutes\n",
      "breastfeeding_supplements 0.510452\n",
      "bubble_bath\n",
      "bath_time 0.6951601\n",
      "novelties\n",
      "movies_comedy_fantasy 0.43837887\n",
      "jams_preserves_gifts\n",
      "toys_gifts 0.5781971\n",
      "meat_gifts\n",
      "gift_baby 0.6691799\n",
      "beads\n",
      "toys_puzzles 0.43579417\n",
      "fish_bowls\n",
      "food_snacks 0.56535447\n",
      "odor_stain_removers\n",
      "personal_care_deodorants 0.4634844\n",
      "food_coloring\n",
      "food_desserts 0.60486054\n",
      "children_s\n",
      "family_kids_toys 0.5857908\n",
      "ice_cream_frozen_desserts\n",
      "food_desserts 0.72618484\n",
      "pastry_decorations\n",
      "food_desserts 0.52426946\n",
      "chicken\n",
      "snacks 0.44235623\n",
      "sports_drinks\n",
      "food_beverages 0.71423584\n",
      "marshmallows\n",
      "snacks 0.50716203\n",
      "pudding\n",
      "food_desserts 0.49639493\n",
      "aprons_smocks\n",
      "pet_clothing 0.45963234\n",
      "electronics\n",
      "electronics 1.0\n",
      "sex_furniture\n",
      "home_furniture 0.71110034\n",
      "pork\n",
      "food_ingredients 0.42486888\n",
      "spices_gifts\n",
      "gift_ideas 0.6836773\n",
      "dried_fruit\n",
      "food_desserts 0.5642173\n",
      "flying_toys\n",
      "toys_games 0.7260778\n",
      "shampoo\n",
      "perfume 0.49428466\n",
      "coatings_batters\n",
      "cooking_techniques 0.4416697\n",
      "hydrometers\n",
      "education_science_project 0.34600586\n",
      "lamb\n",
      "toys_bratz 0.3084105\n",
      "exercise_wheels\n",
      "fitness_equipment 0.56990516\n",
      "chocolate_covered_nuts\n",
      "food_snacks 0.5414187\n",
      "breeding_tanks\n",
      "pet_supplies 0.46825087\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "203"
      ]
     },
     "execution_count": 53,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "correct = 0\n",
    "for lb in true_labels:\n",
    "    query_embedding = model.encode(lb)\n",
    "    print(lb)\n",
    "    passage_embedding = model.encode(label_space)\n",
    "    sim_scores = util.dot_score(query_embedding, passage_embedding)[0].numpy()\n",
    "    rank_list = np.argsort(sim_scores)[-1]\n",
    "    print(label_space[rank_list], sim_scores[rank_list])\n",
    "    if sim_scores[rank_list] >= 0.60:\n",
    "        correct +=1\n",
    "correct"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "1000"
      ]
     },
     "execution_count": 44,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "file2 = open('../datasets/Amazon-531/test_label.txt', 'r')\n",
    "test_label_set = file2.readlines()[:1000]\n",
    "test_set = []  \n",
    "for label in test_label_set:\n",
    "    labels = label.strip().split(', ')\n",
    "    test_set.append(labels)\n",
    "len(test_set)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['grocery_gourmet_food',\n",
       " 'meat_poultry',\n",
       " 'jerky',\n",
       " 'toys_games',\n",
       " 'games',\n",
       " 'puzzles',\n",
       " 'jigsaw_puzzles',\n",
       " 'board_games',\n",
       " 'beverages',\n",
       " 'juices',\n",
       " 'beauty',\n",
       " 'makeup',\n",
       " 'nails',\n",
       " 'arts_crafts',\n",
       " 'drawing_painting_supplies',\n",
       " 'action_toy_figures',\n",
       " 'figures',\n",
       " 'dolls_accessories',\n",
       " 'dolls',\n",
       " 'card_games',\n",
       " 'drawing_sketching_tablets',\n",
       " 'baby_toddler_toys',\n",
       " 'shape_sorters',\n",
       " 'health_personal_care',\n",
       " 'personal_care',\n",
       " 'deodorants_antiperspirants',\n",
       " 'nutrition_wellness',\n",
       " 'nutrition_bars_drinks',\n",
       " 'learning_education',\n",
       " 'habitats',\n",
       " 'electronics_for_kids',\n",
       " 'household_supplies',\n",
       " 'household_batteries',\n",
       " 'push_pull_toys',\n",
       " 'stuffed_animals_plush',\n",
       " 'tricycles',\n",
       " 'scooters_wagons',\n",
       " 'clay_dough',\n",
       " 'health_care',\n",
       " 'allergy',\n",
       " 'baby_products',\n",
       " 'gear',\n",
       " 'baby_gyms_playmats',\n",
       " 'shaving_hair_removal',\n",
       " 'skin_care',\n",
       " 'face',\n",
       " 'animals_figures',\n",
       " 'feminine_care',\n",
       " 'music_sound',\n",
       " 'oral_hygiene',\n",
       " 'grown_up_toys',\n",
       " 'dress_up_pretend_play',\n",
       " 'pretend_play',\n",
       " 'novelty_gag_toys',\n",
       " 'bath_body',\n",
       " 'cleansers',\n",
       " 'playsets',\n",
       " 'd_puzzles',\n",
       " 'dollhouses',\n",
       " 'lip_care_products',\n",
       " 'tools_accessories',\n",
       " 'nail_tools',\n",
       " 'eye_care',\n",
       " 'pill_cases_splitters',\n",
       " 'hair_care',\n",
       " 'styling_products',\n",
       " 'electronic_toys',\n",
       " 'body',\n",
       " 'toy_balls',\n",
       " 'eyes',\n",
       " 'trading_card_games',\n",
       " 'foot_care',\n",
       " 'hands_nails',\n",
       " 'sun',\n",
       " 'medical_supplies_equipment',\n",
       " 'daily_living_aids',\n",
       " 'baby_child_care',\n",
       " 'paper_plastic',\n",
       " 'incontinence',\n",
       " 'shampoos',\n",
       " 'conditioners',\n",
       " 'music_players_karaoke',\n",
       " 'cough_cold',\n",
       " 'bath',\n",
       " 'tests',\n",
       " 'building_toys',\n",
       " 'building_sets',\n",
       " 'stress_reduction',\n",
       " 'family_planning_contraceptives',\n",
       " 'vitamins_supplements',\n",
       " 'hair_color',\n",
       " 'pain_relievers',\n",
       " 'cotton_swabs',\n",
       " 'styling_tools',\n",
       " 'first_aid',\n",
       " 'scrubs_body_treatments',\n",
       " 'cleaning_tools',\n",
       " 'pegged_puzzles',\n",
       " 'diabetes',\n",
       " 'magic_kits_accessories',\n",
       " 'gifts',\n",
       " 'albums',\n",
       " 'crib_toys_attachments',\n",
       " 'digestion_nausea',\n",
       " 'electronic_pets',\n",
       " 'sexual_wellness',\n",
       " 'safer_sex',\n",
       " 'thermometers',\n",
       " 'stacking_nesting_toys',\n",
       " 'makeup_remover',\n",
       " 'temporary_tattoos',\n",
       " 'sports_outdoor_play',\n",
       " 'play_tents_tunnels',\n",
       " 'science',\n",
       " 'sports',\n",
       " 'bath_toys',\n",
       " 'puppets',\n",
       " 'systems_accessories',\n",
       " 'health_monitors',\n",
       " 'inflatable_bouncers',\n",
       " 'hobbies',\n",
       " 'model_building_kits_tools',\n",
       " 'blackboards_whiteboards',\n",
       " 'pools_water_fun',\n",
       " 'rattles',\n",
       " 'sandboxes_accessories',\n",
       " 'activity_play_centers',\n",
       " 'car_seat_stroller_toys',\n",
       " 'feeding',\n",
       " 'bottle_feeding',\n",
       " 'breastfeeding',\n",
       " 'diapering',\n",
       " 'diaper_changing_kits',\n",
       " 'puzzle_accessories',\n",
       " 'diaper_pails_refills',\n",
       " 'safety',\n",
       " 'bathroom_safety',\n",
       " 'massage_relaxation',\n",
       " 'gates_doorways',\n",
       " 'nursery',\n",
       " 'furniture',\n",
       " 'monitors',\n",
       " 'cloth_diapers',\n",
       " 'plush_backpacks_purses',\n",
       " 'statues',\n",
       " 'bathing_skin_care',\n",
       " 'bathing_tubs_seats',\n",
       " 'vehicles_remote_control',\n",
       " 'play_vehicles',\n",
       " 'backpacks_carriers',\n",
       " 'craft_kits',\n",
       " 'car_seats_accessories',\n",
       " 'car_seats',\n",
       " 'nursery_d_cor',\n",
       " 'hammering_pounding_toys',\n",
       " 'bedding',\n",
       " 'play_trains_railway_sets',\n",
       " 'rockets',\n",
       " 'stacking_blocks',\n",
       " 'diaper_bags',\n",
       " 'strollers',\n",
       " 'gym_sets_swings',\n",
       " 'pregnancy_maternity',\n",
       " 'maternity_pillows',\n",
       " 'rocking_spring_ride_ons',\n",
       " 'braces',\n",
       " 'accessories',\n",
       " 'vehicle_playsets',\n",
       " 'doll_accessories',\n",
       " 'pet_supplies',\n",
       " 'cats',\n",
       " 'litter_housebreaking',\n",
       " 'spinning_tops',\n",
       " 'sets',\n",
       " 'travel_games',\n",
       " 'pillows_stools',\n",
       " 'battling_tops',\n",
       " 'cameras_camcorders',\n",
       " 'dance_mats',\n",
       " 'food',\n",
       " 'radio_control',\n",
       " 'grooming_healthcare_kits',\n",
       " 'balls',\n",
       " 'tile_games',\n",
       " 'potty_training',\n",
       " 'potties_seats',\n",
       " 'highchairs_booster_seats',\n",
       " 'stuffed_animals_toys',\n",
       " 'dvd_games',\n",
       " 'edge_corner_guards',\n",
       " 'basic_life_skills_toys',\n",
       " 'activity_centers_entertainers',\n",
       " 'thermometer_accessories',\n",
       " 'wipes_holders',\n",
       " 'gift_sets',\n",
       " 'solid_feeding',\n",
       " 'joggers',\n",
       " 'facial_steamers',\n",
       " 'kites_wind_spinners',\n",
       " 'dogs',\n",
       " 'toys',\n",
       " 'walkers',\n",
       " 'slumber_bags',\n",
       " 'die_cast_vehicles',\n",
       " 'easels',\n",
       " 'lips',\n",
       " 'tea',\n",
       " 'reading_writing',\n",
       " 'gourmet_gifts',\n",
       " 'snack_gifts',\n",
       " 'stacking_games',\n",
       " 'sauces_dips',\n",
       " 'sauces',\n",
       " 'breakfast_foods',\n",
       " 'cereals',\n",
       " 'shopping_cart_covers',\n",
       " 'pantry_staples',\n",
       " 'scaled_model_vehicles',\n",
       " 'cooking_baking_supplies',\n",
       " 'personal_video_players_accessories',\n",
       " 'fragrance',\n",
       " 'women_s',\n",
       " 'keepsakes',\n",
       " 'treats',\n",
       " 'swings',\n",
       " 'trains_accessories',\n",
       " 'disposable_diapers',\n",
       " 'plug_play_video_games',\n",
       " 'floor_puzzles',\n",
       " 'fresh_flowers_live_indoor_plants',\n",
       " 'live_indoor_plants',\n",
       " 'weight_loss_products',\n",
       " 'smoking_cessation',\n",
       " 'beauty_fashion',\n",
       " 'mirrors',\n",
       " 'coffee',\n",
       " 'cabinet_locks_straps',\n",
       " 'plush_pillows',\n",
       " 'floor_games',\n",
       " 'makeup_brushes_tools',\n",
       " 'alternative_medicine',\n",
       " 'changing_table_pads_covers',\n",
       " 'men_s',\n",
       " 'step_stools',\n",
       " 'rails_rail_guards',\n",
       " 'laundry',\n",
       " 'women_s_health',\n",
       " 'standard',\n",
       " 'beds_furniture',\n",
       " 'herbs',\n",
       " 'sleep_positioners',\n",
       " 'health_supplies',\n",
       " 'breakfast_cereal_bars',\n",
       " 'body_art',\n",
       " 'condiments',\n",
       " 'breads_bakery',\n",
       " 'cakes',\n",
       " 'dried_beans',\n",
       " 'household_cleaning',\n",
       " 'collars',\n",
       " 'educational_repellents',\n",
       " 'dessert_gifts',\n",
       " 'adult_toys_games',\n",
       " 'teddy_bears',\n",
       " 'therapeutic_skin_care',\n",
       " 'candy_chocolate',\n",
       " 'chocolate_assortments',\n",
       " 'sand_water_tables',\n",
       " 'slot_cars',\n",
       " 'chocolate',\n",
       " 'soft_drinks',\n",
       " 'snack_food',\n",
       " 'chips_crisps',\n",
       " 'licorice',\n",
       " 'feeding_watering_supplies',\n",
       " 'blasters_foam_play',\n",
       " 'chocolate_bars',\n",
       " 'meat_seafood',\n",
       " 'wild_game_fowl',\n",
       " 'spices_seasonings',\n",
       " 'cookies',\n",
       " 'training_behavior_aids',\n",
       " 'gardening_tools',\n",
       " 'bathroom_aids_safety',\n",
       " 'pogo_sticks_hoppers',\n",
       " 'powdered_drink_mixes',\n",
       " 'playards',\n",
       " 'gag_toys_practical_jokes',\n",
       " 'baby_food',\n",
       " 'baby_formula',\n",
       " 'lighters',\n",
       " 'dried_fruit_raisins',\n",
       " 'money_banks',\n",
       " 'marble_runs',\n",
       " 'game_collections',\n",
       " 'kitchen_safety',\n",
       " 'fish_aquatic_pets',\n",
       " 'gum',\n",
       " 'outdoor_safety',\n",
       " 'hair_nails',\n",
       " 'aquarium_lights',\n",
       " 'blocks',\n",
       " 'tandem',\n",
       " 'occupational_physical_therapy_aids',\n",
       " 'packaged_meals_side_dishes',\n",
       " 'indoor_climbers_play_structures',\n",
       " 'pumps_filters',\n",
       " 'beds_accessories',\n",
       " 'energy_drinks',\n",
       " 'sleep_snoring',\n",
       " 'geography',\n",
       " 'small_animals',\n",
       " 'houses_habitats',\n",
       " 'dairy_eggs',\n",
       " 'cheese',\n",
       " 'travel_systems',\n",
       " 'walkie_talkies',\n",
       " 'mobility_aids_equipment',\n",
       " 'sexual_enhancers',\n",
       " 'dips',\n",
       " 'dollhouse_accessories',\n",
       " 'party_mix',\n",
       " 'bathing_accessories',\n",
       " 'grooming',\n",
       " 'baby_seats',\n",
       " 'wind_up_toys',\n",
       " 'sensual_delights',\n",
       " 'hot_cocoa',\n",
       " 'dishwashing',\n",
       " 'carriers_strollers',\n",
       " 'flash_cards',\n",
       " 'brain_teasers',\n",
       " 'nesting_dolls',\n",
       " 'test_kits',\n",
       " 'lightweight',\n",
       " 'hair_loss_products',\n",
       " 'water_treatments',\n",
       " 'birds',\n",
       " 'hair_scalp_treatments',\n",
       " 'cages_accessories',\n",
       " 'gummy_candies',\n",
       " 'gummy_candy',\n",
       " 'jerky_dried_meats',\n",
       " 'houses',\n",
       " 'chocolate_truffles',\n",
       " 'ear_care',\n",
       " 'milk',\n",
       " 'pizza_crusts',\n",
       " 'fresh_baked_cookies',\n",
       " 'hard_candies',\n",
       " 'sports_supplements',\n",
       " 'baking_mixes',\n",
       " 'crackers',\n",
       " 'pork_rinds',\n",
       " 'pasta_noodles',\n",
       " 'trail_mix',\n",
       " 'carriers_travel_products',\n",
       " 'produce',\n",
       " 'fresh_fruits',\n",
       " 'toaster_pastries',\n",
       " 'rice_cakes',\n",
       " 'chips',\n",
       " 'puffed_snacks',\n",
       " 'pretzels',\n",
       " 'mathematics_counting',\n",
       " 'suckers_lollipops',\n",
       " 'popcorn',\n",
       " 'toy_banks',\n",
       " 'training_pants',\n",
       " 'tea_gifts',\n",
       " 'oils',\n",
       " 'aquarium_hoods',\n",
       " 'tortillas',\n",
       " 'cheese_gifts',\n",
       " 'doors',\n",
       " 'standard_playing_card_decks',\n",
       " 'fudge',\n",
       " 'syrups',\n",
       " 'printing_stamping',\n",
       " 'toy_gift_sets',\n",
       " 'canned_jarred_food',\n",
       " 'fresh_vegetables',\n",
       " 'apparel_accessories',\n",
       " 'candy_gifts',\n",
       " 'chewing_gum',\n",
       " 'puzzle_play_mats',\n",
       " 'electrical_safety',\n",
       " 'sugars_sweeteners',\n",
       " 'marble_games',\n",
       " 'miniatures',\n",
       " 'finger_boards_finger_bikes',\n",
       " 'coconut_water',\n",
       " 'handheld_games',\n",
       " 'slime_putty_toys',\n",
       " 'pastries',\n",
       " 'health_baby_care',\n",
       " 'teethers',\n",
       " 'butter',\n",
       " 'fruits',\n",
       " 'chocolate_pretzels',\n",
       " 'breakfast_bakery',\n",
       " 'stickers',\n",
       " 'soaps_cleansers',\n",
       " 'sauces_gifts',\n",
       " 'fitness_equipment',\n",
       " 'water',\n",
       " 'portable_changing_pads',\n",
       " 'dice_gaming_dice',\n",
       " 'pacifiers_accessories',\n",
       " 'bars',\n",
       " 'cocktail_mixers',\n",
       " 'aquariums',\n",
       " 'ball_pits_accessories',\n",
       " 'seafood',\n",
       " 'bags_cases',\n",
       " 'jelly_beans',\n",
       " 'novelty_spinning_tops',\n",
       " 'automatic_feeders',\n",
       " 'mints',\n",
       " 'makeup_sets',\n",
       " 'cleaners',\n",
       " 'fresh_cut_flowers',\n",
       " 'jams',\n",
       " 'prams',\n",
       " 'nuts_seeds',\n",
       " 'taffy',\n",
       " 'bunny_rabbit_central',\n",
       " 'rabbit_hutches',\n",
       " 'aquarium_d_cor',\n",
       " 'granola_bars',\n",
       " 'viewfinders',\n",
       " 'harnesses_leashes',\n",
       " 'foie_gras_p_t_s',\n",
       " 'game_accessories',\n",
       " 'p_t_s',\n",
       " 'game_room_games',\n",
       " 'cages',\n",
       " 'non_slip_bath_mats',\n",
       " 'halva',\n",
       " 'seafood_gifts',\n",
       " 'stimulants',\n",
       " 'beanbags_foot_bags',\n",
       " 'shampoo_conditioner_sets',\n",
       " 'nut_clusters',\n",
       " 'raisins',\n",
       " 'breadcrumbs',\n",
       " 'extracts_flavoring',\n",
       " 'plush_puppets',\n",
       " 'shampoo_plus_conditioner',\n",
       " 'salsas',\n",
       " 'memorials',\n",
       " 'die_cast_toy_vehicles',\n",
       " 'aquarium_starter_kits',\n",
       " 'coffee_gifts',\n",
       " 'air_fresheners',\n",
       " 'fruit_leather',\n",
       " 'granola_trail_mix_bars',\n",
       " 'sugar_substitutes',\n",
       " 'bacon',\n",
       " 'cat_flaps',\n",
       " 'aquarium_heaters',\n",
       " 'hair_relaxers',\n",
       " 'breads',\n",
       " 'packaged_breads',\n",
       " 'sausages',\n",
       " 'dessert_toppings',\n",
       " 'diaper_stackers_caddies',\n",
       " 'prisms_kaleidoscopes',\n",
       " 'maternity',\n",
       " 'crackers_biscuits',\n",
       " 'coin_collecting',\n",
       " 'chocolate_gifts',\n",
       " 'kickball_playground_balls',\n",
       " 'hair_perms_texturizers',\n",
       " 'yo_yos',\n",
       " 'flours_meals',\n",
       " 'beef',\n",
       " 'molding_sculpting_sticks',\n",
       " 'washcloths_towels',\n",
       " 'fruit_gifts',\n",
       " 'stuffing',\n",
       " 'baking_powder',\n",
       " 'cereal',\n",
       " 'exotic_meats',\n",
       " 'breadsticks',\n",
       " 'eggs',\n",
       " 'cloth_diaper_accessories',\n",
       " 'carriers',\n",
       " 'toffee',\n",
       " 'hair_coloring_tools',\n",
       " 'chocolate_covered_fruit',\n",
       " 'caramels',\n",
       " 'assortments',\n",
       " 'aromatherapy',\n",
       " 'seat_covers',\n",
       " 'bondage_gear_accessories',\n",
       " 'sun_protection',\n",
       " 'dinners',\n",
       " 'fruit',\n",
       " 'aquarium_stands',\n",
       " 'teaching_clocks',\n",
       " 'milk_substitutes',\n",
       " 'bubble_bath',\n",
       " 'novelties',\n",
       " 'jams_preserves_gifts',\n",
       " 'meat_gifts',\n",
       " 'beads',\n",
       " 'fish_bowls',\n",
       " 'odor_stain_removers',\n",
       " 'food_coloring',\n",
       " 'children_s',\n",
       " 'ice_cream_frozen_desserts',\n",
       " 'pastry_decorations',\n",
       " 'chicken',\n",
       " 'sports_drinks',\n",
       " 'marshmallows',\n",
       " 'pudding',\n",
       " 'aprons_smocks',\n",
       " 'electronics',\n",
       " 'sex_furniture',\n",
       " 'pork',\n",
       " 'spices_gifts',\n",
       " 'dried_fruit',\n",
       " 'flying_toys',\n",
       " 'shampoo',\n",
       " 'coatings_batters',\n",
       " 'hydrometers',\n",
       " 'lamb',\n",
       " 'exercise_wheels',\n",
       " 'chocolate_covered_nuts',\n",
       " 'breeding_tanks']"
      ]
     },
     "execution_count": 47,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "file2 = open('../datasets/Amazon-531/test/labels.txt', 'r')\n",
    "test_label_set = file2.readlines()\n",
    "true_labels = []\n",
    "for label in test_label_set:\n",
    "    true_labels.append(label.strip().split('\\t')[1])\n",
    "true_labels"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "metadata": {},
   "outputs": [],
   "source": [
    "with open(\"../datasets/Amazon-531/llm_cluster_result/zero_shot_text_test.json\",\"r\") as json_file:\n",
    "    json_list = list(json_file)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "metadata": {},
   "outputs": [],
   "source": [
    "predict_output = []\n",
    "for i in range(len(json_list)):\n",
    "    predict_output.append(json_list[i].split('\"labels\": [')[1].split(',')[0][1:-1])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "beauty_hair_care ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.56852764 0.8634659  0.32811424]\n",
      "toys_gifts ['toys_games', 'dolls_accessories', 'dolls,']\n",
      "[0.8262298 0.6618003 0.5062856]\n",
      "home_and_garden_sleep_technology ['baby_products', 'gifts,']\n",
      "[0.25850987 0.15093413]\n",
      "recipes ['grocery_gourmet_food', 'pantry_staples', 'canned_jarred_food,']\n",
      "[0.43134737 0.32638174 0.43596968]\n",
      "beauty_products ['beauty', 'skin_care', 'sun,']\n",
      "[0.6002429  0.5132369  0.22619517]\n",
      "recommendations ['grocery_gourmet_food', 'beverages', 'tea,']\n",
      "[0.19348939 0.25644177 0.26208317]\n",
      "beauty_products ['beauty', 'skin_care', 'body,']\n",
      "[0.6002429  0.5132369  0.36049676]\n",
      "toys_gifts ['baby_products', 'gear', 'baby_gyms_playmats,']\n",
      "[0.57862127 0.38300684 0.5084454 ]\n",
      "oral_health ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.49894044 0.3455468  0.8151215 ]\n",
      "family_kids_toys ['toys_games', 'dress_up_pretend_play', 'pretend_play,']\n",
      "[0.7044606  0.30757248 0.30223352]\n",
      "beauty_products ['health_personal_care', 'personal_care', 'lip_care_products,']\n",
      "[0.32688472 0.35566658 0.69598824]\n",
      "electronics_personal_care_disappointing ['beauty', 'bath_body', 'bath,']\n",
      "[0.1792392  0.23803417 0.18429872]\n",
      "pets ['pet_supplies', 'dogs', 'feeding_watering_supplies,']\n",
      "[0.6490211  0.8171104  0.23436277]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.14116849 0.4986687  0.43014672]\n",
      "consumer_electronics_reviews ['health_personal_care', 'health_care', 'massage_relaxation,']\n",
      "[0.20636317 0.21298315 0.12493852]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "skincare ['beauty', 'hair_care', 'hair_perms_texturizers,']\n",
      "[0.38147837 0.5273391  0.29246354]\n",
      "family_kids_toys ['toys_games', 'dolls_accessories', 'doll_accessories,']\n",
      "[0.7044607  0.54684466 0.56906706]\n",
      "electronics_personal_care_disappointing ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.1792392  0.38285878 0.10550782]\n",
      "fragrances ['beauty', 'skin_care', 'body,']\n",
      "[0.41336945 0.3110864  0.2697323 ]\n",
      "[grooming_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.29940915 0.32248315 0.7987232 ]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "toys_puzzles ['toys_games', 'puzzles', 'jigsaw_puzzles,']\n",
      "[0.80225635 0.6792669  0.6718006 ]\n",
      "snacks ['baby_products', 'car_seats_accessories', 'accessories,']\n",
      "[0.3592857  0.24975008 0.3679854 ]\n",
      "fragrances ['beauty', 'bath_body', 'cleansers,']\n",
      "[0.41336948 0.28931248 0.41027248]\n",
      "shopping ['baby_products', 'diapering', 'diaper_bags,']\n",
      "[0.35966545 0.36907092 0.32696557]\n",
      "family_kids_toys ['toys_games', 'baby_toddler_toys,']\n",
      "[0.7044606  0.76504594]\n",
      "consumer_electronics_reviews ['beauty', 'hair_care', 'styling_tools,']\n",
      "[ 0.15973508  0.20721306 -0.00171316]\n",
      "toys_gifts ['toys_games', 'dolls_accessories', 'dolls,']\n",
      "[0.8262298 0.6618003 0.5062856]\n",
      "reviews ['health_personal_care', 'household_supplies,']\n",
      "[0.17237273 0.1567405 ]\n",
      "[consumer_products_personal_care_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.49261317 0.4909653  0.6778133 ]\n",
      "toys_games ['toys_games', 'action_toy_figures', 'figures,']\n",
      "[1.        0.6677868 0.373444 ]\n",
      "parenting_baby_care ['baby_products', 'diapering', 'disposable_diapers,']\n",
      "[0.52180386 0.4000964  0.38777113]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.14116849 0.4986687  0.8474369 ]\n",
      "beauty_products ['beauty', 'fragrance', 'men_s,']\n",
      "[0.6002429  0.5137045  0.29263225]\n",
      "music_instruments ['toys_games', 'baby_toddler_toys', 'music_sound,']\n",
      "[0.37671122 0.3128679  0.73845154]\n",
      "toys_building_sets ['toys_games', 'building_toys,']\n",
      "[0.63675064 0.84941584]\n",
      "beauty_products ['beauty', 'makeup', 'eyes,']\n",
      "[0.6002429  0.53437495 0.36051622]\n",
      "games ['toys_games', 'games', 'card_games,']\n",
      "[0.6286931  0.9999998  0.63236713]\n",
      "family_kids_toys ['baby_products', 'nursery', 'bedding,']\n",
      "[0.54590905 0.4511707  0.28807956]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.14116849 0.4986687  0.8474369 ]\n",
      "family_kids_toys ['toys_games', 'puzzles', 'pegged_puzzles,']\n",
      "[0.7044607  0.299311   0.39211437]\n",
      "parenting ['baby_products', 'safety', 'gates_doorways,']\n",
      "[0.36562166 0.30994615 0.18777296]\n",
      "health_supplements ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.21168283 0.25466517]\n",
      "grooming ['beauty', 'makeup', 'nails,']\n",
      "[0.36866558 0.40404955 0.46006984]\n",
      "sleep_aids ['baby_products', 'pregnancy_maternity', 'maternity_pillows,']\n",
      "[0.3053128  0.18505049 0.38090312]\n",
      "family_kids_toys ['toys_games', 'dolls_accessories', 'playsets,']\n",
      "[0.7044606  0.54684466 0.35781258]\n",
      "beauty_product_disappointment ['beauty', 'tools_accessories', 'mirrors,']\n",
      "[0.53099257 0.28678924 0.23571444]\n",
      "home_furniture ['baby_products', 'feeding', 'highchairs_booster_seats,']\n",
      "[0.3739818  0.19316201 0.39186314]\n",
      "consumer_electronics_reviews ['beauty', 'tools_accessories', 'mirrors,']\n",
      "[0.15973511 0.18524438 0.11250271]\n",
      "supplements ['health_personal_care', 'health_care', 'cough_cold,']\n",
      "[0.14116849 0.19878933 0.12796946]\n",
      "toys_games ['toys_games', 'action_toy_figures', 'playsets,']\n",
      "[1.         0.6677868  0.42744642]\n",
      "beauty_products ['beauty', 'skin_care', 'body,']\n",
      "[0.6002429  0.5132369  0.36049676]\n",
      "technology_gadgets ['toys_games', 'electronics_for_kids,']\n",
      "[0.39748478 0.55962783]\n",
      "toys_building_sets ['toys_games', 'building_toys', 'building_sets,']\n",
      "[0.6367507 0.8604247 0.709971 ]\n",
      "parenting_toys ['toys_games', 'baby_toddler_toys,']\n",
      "[0.71435636 0.7789873 ]\n",
      "fashion_beauty_product_issues ['beauty', 'hair_care', 'hair_color,']\n",
      "[0.46836418 0.36148325 0.30536827]\n",
      "technology_gadgets ['health_personal_care', 'medical_supplies_equipment', 'daily_living_aids,']\n",
      "[0.18943338 0.44397664 0.23890944]\n",
      "fitness_equipment ['health_personal_care', 'medical_supplies_equipment', 'health_monitors,']\n",
      "[0.31356478 0.65157646 0.4415031 ]\n",
      "education_kids_learning ['toys_games', 'electronics_for_kids', 'systems_accessories,']\n",
      "[0.37859386 0.53861034 0.21467681]\n",
      "car_accessories ['toys_games', 'hobbies', 'model_building_kits_tools,']\n",
      "[0.4638226  0.28347895 0.2547966 ]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'conditioners,']\n",
      "[0.56852764 0.8634659  0.2424541 ]\n",
      "recipes ['grocery_gourmet_food', 'snack_food', 'cookies,']\n",
      "[0.43134737 0.47566983 0.40538213]\n",
      "family_kids_toys ['toys_games', 'novelty_gag_toys', 'magic_kits_accessories,']\n",
      "[0.7044607  0.58359957 0.49438906]\n",
      "crafting ['toys_games', 'arts_crafts,']\n",
      "[0.24718814 0.66923666]\n",
      "toys_building_sets ['toys_games', 'learning_education,']\n",
      "[0.63675064 0.21951018]\n",
      "personal_care_deodorants ['baby_products', 'diapering', 'diaper_pails_refills,']\n",
      "[0.4017194  0.25253102 0.35706675]\n",
      "[grooming_shaving] ['pet_supplies', 'cats', 'grooming,']\n",
      "[0.25865212 0.20297429 0.77740866]\n",
      "toys_gifts ['toys_games', 'dolls_accessories', 'dolls,']\n",
      "[0.8262298 0.6618003 0.5062856]\n",
      "pets ['toys_games', 'baby_toddler_toys', 'bath_toys,']\n",
      "[0.34419277 0.29895276 0.33463866]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'styling_products,']\n",
      "[0.56852764 0.8634659  0.38056228]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'shampoo_plus_conditioner,']\n",
      "[0.56852764 0.8634659  0.4756148 ]\n",
      "toys_disappointing ['baby_products', 'gear', 'swings,']\n",
      "[0.47774225 0.3261547  0.24700871]\n",
      "parenting_baby_gear ['baby_products', 'gear', 'baby_gyms_playmats,']\n",
      "[0.5734514 0.6176513 0.5083789]\n",
      "beauty_products ['beauty', 'fragrance', 'women_s,']\n",
      "[0.6002429  0.5137045  0.38518193]\n",
      "food_desserts ['grocery_gourmet_food', 'candy_chocolate', 'suckers_lollipops,']\n",
      "[0.53026086 0.5615982  0.3449509 ]\n",
      "pet_accessories ['toys_games', 'stuffed_animals_plush', 'animals_figures,']\n",
      "[0.44534603 0.56648976 0.47495586]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.14116849 0.4986687  0.43014672]\n",
      "health_medical_equipment ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.5281792  0.33971813 0.38175854]\n",
      "perfume ['beauty', 'fragrance', 'women_s,']\n",
      "[0.4922841  0.82422227 0.23284349]\n",
      "grooming ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.36866555 0.559311   0.29628313]\n",
      "toys_gifts ['toys_games', 'dolls_accessories', 'doll_accessories,']\n",
      "[0.8262298  0.6618003  0.68278843]\n",
      "beauty_nail_care ['beauty', 'makeup', 'nails,']\n",
      "[0.4474656 0.3801255 0.6479705]\n",
      "reviews ['pet_supplies', 'fish_aquatic_pets', 'pumps_filters,']\n",
      "[0.10331374 0.13107044 0.02703043]\n",
      "oral_care ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.5127526 0.5296027 0.8284817]\n",
      "health_medical_equipment ['health_personal_care', 'health_care', 'pill_cases_splitters,']\n",
      "[0.5281792  0.5968421  0.27021727]\n",
      "health_medical_supplies ['baby_products', 'diapering', 'disposable_diapers,']\n",
      "[0.35246176 0.23488319 0.41417778]\n",
      "parenting_baby_care ['baby_products', 'gear', 'swings,']\n",
      "[0.52180386 0.16288234 0.19225696]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "pets ['toys_games', 'learning_education', 'science,']\n",
      "[0.3441927  0.18095143 0.3375086 ]\n",
      "[consumer_products_personal_care_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.49261317 0.4909653  0.6778133 ]\n",
      "beauty_products ['beauty', 'fragrance', 'men_s,']\n",
      "[0.6002429  0.5137045  0.29263225]\n",
      "food_ingredients ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.4964146  0.41558084]\n",
      "games ['toys_games', 'games', 'board_games,']\n",
      "[0.6286931 0.9999998 0.6345357]\n",
      "beauty_makeup_tools ['health_personal_care', 'household_supplies', 'cleaning_tools,']\n",
      "[0.250043   0.32516482 0.48869184]\n",
      "parenting_baby_gear ['baby_products', 'bathing_skin_care', 'gift_sets,']\n",
      "[0.5734513  0.2846662  0.33560345]\n",
      "dental_care ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.5842742  0.52367526 0.7221868 ]\n",
      "parenting_baby_gear ['baby_products', 'nursery', 'bedding,']\n",
      "[0.5734513  0.4477723  0.27238256]\n",
      "beauty_products ['beauty', 'bath_body', 'cleansers,']\n",
      "[0.6002429  0.45510772 0.3596702 ]\n",
      "supplements ['health_personal_care', 'health_care', 'sleep_snoring,']\n",
      "[0.14116849 0.19878933 0.12071902]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'weight_loss_products,']\n",
      "[0.41859624 0.6872301  0.5260148 ]\n",
      "sexual_health ['health_personal_care', 'medical_supplies_equipment', 'health_monitors,']\n",
      "[0.6052277 0.2668492 0.434594 ]\n",
      "oral_care ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.5127526 0.5296027 0.8284817]\n",
      "crafting ['toys_games', 'vehicles_remote_control', 'play_trains_railway_sets,']\n",
      "[0.2471881  0.00339998 0.10510859]\n",
      "product_issues ['beauty', 'hair_care', 'hair_loss_products,']\n",
      "[0.15031968 0.24715309 0.46271154]\n",
      "recipes ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.10865179 0.38173264 0.3912112 ]\n",
      "toys_crafts ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.17975643 0.23669541 0.24447727]\n",
      "dental_care ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.5842742  0.52367526 0.7221868 ]\n",
      "food_beverages ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.4625294 0.3301758]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'tea,']\n",
      "[0.4625294  0.81020916 0.45982718]\n",
      "toys_puzzles ['toys_games', 'puzzles', 'pegged_puzzles,']\n",
      "[0.80225635 0.6792669  0.6866187 ]\n",
      "supplements ['pet_supplies', 'dogs', 'health_supplies,']\n",
      "[0.20109877 0.18904969 0.40612596]\n",
      "toys_gifts ['toys_games', 'games', 'board_games,']\n",
      "[0.8262298  0.38112617 0.45657027]\n",
      "beauty ['toys_games', 'stuffed_animals_plush,']\n",
      "[0.16323571 0.2630086 ]\n",
      "beauty_products ['beauty', 'fragrance', 'women_s,']\n",
      "[0.6002429  0.5137045  0.38518193]\n",
      "pets ['pet_supplies', 'dogs', 'training_behavior_aids,']\n",
      "[0.6490211  0.8171104  0.15243609]\n",
      "family_kids_toys ['toys_games', 'dress_up_pretend_play', 'pretend_play,']\n",
      "[0.7044606  0.30757248 0.30223352]\n",
      "perfume ['beauty', 'fragrance', 'men_s,']\n",
      "[0.4922841  0.82422227 0.19620812]\n",
      "health_medical_equipment ['health_personal_care', 'medical_supplies_equipment', 'bathroom_aids_safety,']\n",
      "[0.5281792  0.87382436 0.4469536 ]\n",
      "family_kids_toys ['toys_games', 'stuffed_animals_plush', 'animals_figures,']\n",
      "[0.7044607  0.562497   0.39220032]\n",
      "outdoor_recreation ['toys_games', 'tricycles', 'scooters_wagons,']\n",
      "[0.3156681 0.2673984 0.2802089]\n",
      "crafting ['toys_games', 'dress_up_pretend_play', 'pretend_play,']\n",
      "[0.2471881  0.18828443 0.1424751 ]\n",
      "beauty_makeup_tools ['beauty', 'makeup', 'eyes,']\n",
      "[0.4949106  0.6271721  0.36853758]\n",
      "toys_gifts ['baby_products', 'gear', 'swings,']\n",
      "[0.57862127 0.38300684 0.21431418]\n",
      "product_disappointment ['toys_games', 'games', 'board_games,']\n",
      "[0.39799377 0.25583372 0.37496126]\n",
      "toys_disappointing ['toys_games', 'baby_toddler_toys', 'activity_play_centers,']\n",
      "[0.743176   0.66457784 0.236376  ]\n",
      "product_reviews_negative ['grocery_gourmet_food', 'fresh_flowers_live_indoor_plants', 'live_indoor_plants,']\n",
      "[0.23392116 0.17300676 0.15623857]\n",
      "supplements_digestive_health ['health_personal_care', 'health_care', 'therapeutic_skin_care,']\n",
      "[0.32565707 0.36073118 0.26801565]\n",
      "snacks ['grocery_gourmet_food', 'snack_food', 'party_mix,']\n",
      "[0.3801156  0.7213256  0.27521166]\n",
      "beauty_products ['health_personal_care', 'personal_care', 'lip_care_products,']\n",
      "[0.32688472 0.35566658 0.69598824]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.56852764 0.8634659  0.32811424]\n",
      "pets ['pet_supplies', 'cats', 'health_supplies,']\n",
      "[0.6490211  0.76503944 0.21674009]\n",
      "health_sinus_relief ['health_personal_care', 'health_care', 'allergy,']\n",
      "[0.4245899  0.46367592 0.36589295]\n",
      "parenting_toys ['baby_products', 'nursery,']\n",
      "[0.6032257  0.52452105]\n",
      "gaming_electronics ['toys_games', 'electronics_for_kids', 'systems_accessories,']\n",
      "[0.57778865 0.64627117 0.5183578 ]\n",
      "skincare ['health_personal_care', 'health_care', 'first_aid,']\n",
      "[0.3292828  0.4091317  0.29103762]\n",
      "recipes ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.43134737 0.33343786]\n",
      "beauty_products ['beauty', 'bath_body', 'cleansers,']\n",
      "[0.6002429  0.45510772 0.3596702 ]\n",
      "snacks ['grocery_gourmet_food', 'candy_chocolate', 'gummy_candies,']\n",
      "[0.3801156  0.4380491  0.39581326]\n",
      "consumer_electronics_reviews ['pet_supplies', 'cats', 'litter_housebreaking,']\n",
      "[0.17832471 0.149534   0.13316146]\n",
      "parenting_baby_monitors ['baby_products', 'safety', 'monitors,']\n",
      "[0.46771023 0.18051127 0.46832913]\n",
      "outdoor_recreation ['toys_games', 'sports_outdoor_play', 'play_tents_tunnels,']\n",
      "[0.3156681  0.7671351  0.37380248]\n",
      "pets ['pet_supplies', 'dogs', 'carriers_travel_products,']\n",
      "[0.6490211  0.8171104  0.15121609]\n",
      "toys_building_sets ['toys_games', 'baby_toddler_toys', 'blocks,']\n",
      "[0.6367507  0.55265176 0.23201619]\n",
      "beauty_products ['health_personal_care', 'health_care', 'first_aid,']\n",
      "[0.32688472 0.33715993 0.23192231]\n",
      "beauty_products ['beauty', 'makeup', 'nails,']\n",
      "[0.6002429  0.53437495 0.24555218]\n",
      "games ['toys_games', 'games', 'board_games,']\n",
      "[0.6286931 0.9999998 0.6345357]\n",
      "pets ['pet_supplies', 'cats', 'feeding_watering_supplies,']\n",
      "[0.6490211  0.76503944 0.23436277]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'shampoos,']\n",
      "[0.56852764 0.8634659  0.40233606]\n",
      "fitness_equipment ['baby_products', 'strollers', 'joggers,']\n",
      "[0.3717822  0.15633416 0.34778813]\n",
      "home_kitchen ['baby_products', 'safety', 'kitchen_safety,']\n",
      "[0.3460636  0.18856713 0.6869892 ]\n",
      "supplements ['health_personal_care', 'health_care', 'pill_cases_splitters,']\n",
      "[0.14116846 0.19878921 0.25226063]\n",
      "games ['toys_games', 'games', 'card_games,']\n",
      "[0.6286931  0.9999998  0.63236713]\n",
      "snacks ['grocery_gourmet_food', 'candy_chocolate', 'chocolate_bars,']\n",
      "[0.3801156  0.4380491  0.44276205]\n",
      "pets ['pet_supplies', 'dogs', 'collars,']\n",
      "[0.6490211 0.8171104 0.5556047]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'sports_supplements,']\n",
      "[0.14116849 0.4986687  0.7839182 ]\n",
      "products_for_children ['health_personal_care', 'health_care', 'first_aid,']\n",
      "[0.11346097 0.14598872 0.20065196]\n",
      "skincare ['beauty', 'skin_care', 'face,']\n",
      "[0.38147843 0.8631095  0.37366784]\n",
      "parenting_baby_care ['toys_games', 'action_toy_figures', 'figures,']\n",
      "[0.34209788 0.26145718 0.11763505]\n",
      "health_wellness ['pet_supplies', 'dogs', 'food,']\n",
      "[0.19515838 0.10024423 0.31715608]\n",
      "supplements ['health_personal_care', 'health_care', 'sleep_snoring,']\n",
      "[0.14116849 0.19878933 0.12071902]\n",
      "health_medical_supplies ['health_personal_care', 'health_care', 'cough_cold,']\n",
      "[0.5720322  0.63462204 0.23039995]\n",
      "home_furniture ['health_personal_care', 'medical_supplies_equipment', 'mobility_aids_equipment,']\n",
      "[0.2364087  0.26462543 0.24049525]\n",
      "toys_games ['toys_games', 'sports_outdoor_play', 'pools_water_fun,']\n",
      "[1.         0.35104385 0.41811752]\n",
      "food_ingredients ['grocery_gourmet_food', 'produce', 'fresh_fruits,']\n",
      "[0.4964146  0.39958483 0.41490787]\n",
      "home_kitchen ['baby_products', 'feeding', 'bottle_feeding,']\n",
      "[0.3460636  0.3061379  0.30181876]\n",
      "reviews ['beauty', 'hair_care', 'hair_color,']\n",
      "[0.33836672 0.2792725  0.17046127]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.56852764 0.8634659  0.32811424]\n",
      "beauty_products ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.32688472 0.41098532 0.39037442]\n",
      "parenting_baby_care ['baby_products', 'feeding', 'highchairs_booster_seats,']\n",
      "[0.52180386 0.3435879  0.29348472]\n",
      "health_digestive_issues ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.31050533 0.50004506 0.2813487 ]\n",
      "toys_gifts ['toys_games', 'dress_up_pretend_play', 'pretend_play,']\n",
      "[0.8262298 0.2859007 0.271112 ]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.14116849 0.4986687  0.8474369 ]\n",
      "games ['toys_games', 'games', 'trading_card_games,']\n",
      "[0.6286931  0.9999998  0.54570776]\n",
      "pets ['pet_supplies', 'dogs', 'beds_furniture,']\n",
      "[0.6490211  0.8171104  0.23375496]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.14116849 0.4986687  0.8474369 ]\n",
      "beauty_products ['beauty', 'hair_care', 'hair_scalp_treatments,']\n",
      "[0.6002429 0.5075035 0.3663092]\n",
      "health_supplements ['health_personal_care', 'health_care', 'cough_cold,']\n",
      "[0.41859624 0.5034929  0.18797192]\n",
      "family_kids_toys ['toys_games', 'puzzles', 'brain_teasers,']\n",
      "[0.7044607  0.299311   0.24664226]\n",
      "supplements ['health_personal_care', 'nutrition_wellness,']\n",
      "[0.14116845 0.52083045]\n",
      "family_kids_toys ['toys_games', 'baby_toddler_toys', 'push_pull_toys,']\n",
      "[0.7044607  0.76612115 0.555402  ]\n",
      "toys_games ['health_personal_care', 'sexual_wellness', 'adult_toys_games,']\n",
      "[0.1749678  0.33424217 0.877996  ]\n",
      "beauty_products ['health_personal_care', 'personal_care', 'lip_care_products,']\n",
      "[0.32688472 0.35566658 0.69598824]\n",
      "family_kids_toys ['toys_games', 'action_toy_figures', 'playsets,']\n",
      "[0.7044607 0.574806  0.3578125]\n",
      "snacks ['baby_products', 'feeding', 'solid_feeding,']\n",
      "[0.3592857  0.50203997 0.3338614 ]\n",
      "oral_health ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.49894044 0.3455468  0.8151215 ]\n",
      "snacks ['grocery_gourmet_food', 'snack_food', 'chips_crisps,']\n",
      "[0.3801156 0.7213256 0.4477952]\n",
      "furniture_assembly ['baby_products', 'safety', 'cabinet_locks_straps,']\n",
      "[0.2591425  0.14397183 0.3918119 ]\n",
      "beauty_products ['beauty', 'hair_care', 'hair_relaxers,']\n",
      "[0.6002429 0.5075035 0.4662476]\n",
      "pets ['pet_supplies', 'dogs', 'health_supplies,']\n",
      "[0.6490211  0.8171104  0.21674009]\n",
      "pets ['pet_supplies', 'cats', 'grooming,']\n",
      "[0.6490211  0.7650394  0.36175692]\n",
      "pet_care ['pet_supplies', 'dogs', 'collars,']\n",
      "[0.7132469  0.48187137 0.33113837]\n",
      "diet_fail ['pet_supplies', 'cats', 'health_supplies,']\n",
      "[0.07445192 0.16382195 0.29605463]\n",
      "reproductive_health ['health_personal_care', 'health_care', 'women_s_health,']\n",
      "[0.59385204 0.62627923 0.71258545]\n",
      "pet_accessories ['pet_supplies', 'dogs', 'treats,']\n",
      "[0.83973384 0.42054087 0.35205558]\n",
      "pet_accessories ['pet_supplies', 'dogs', 'collars,']\n",
      "[0.83973384 0.42054087 0.3731814 ]\n",
      "skincare ['beauty', 'skin_care', 'face,']\n",
      "[0.38147843 0.8631095  0.37366784]\n",
      "car_accessories ['toys_games', 'tricycles', 'scooters_wagons,']\n",
      "[0.46382257 0.33908617 0.4933847 ]\n",
      "products_for_children ['baby_products', 'diapering,']\n",
      "[0.7485176  0.20290913]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.41859624 0.6872301  0.5225135 ]\n",
      "[consumer_products_personal_care_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.49261317 0.4909653  0.6778133 ]\n",
      "grooming ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.20014656 0.24637152 0.5898558 ]\n",
      "consumer_electronics_reviews ['toys_games', 'action_toy_figures', 'accessories,']\n",
      "[0.21566631 0.10493328 0.34176278]\n",
      "games ['toys_games', 'games', 'card_games,']\n",
      "[0.6286931  0.9999998  0.63236713]\n",
      "pets ['pet_supplies', 'cats', 'grooming,']\n",
      "[0.6490211  0.7650394  0.36175692]\n",
      "pet_care ['pet_supplies', 'dogs', 'health_supplies,']\n",
      "[0.7132469  0.48187137 0.41307944]\n",
      "grooming ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.20014656 0.24637152 0.5898558 ]\n",
      "health_pain_management ['health_personal_care', 'health_care', 'pain_relievers,']\n",
      "[0.47723636 0.52291054 0.7226634 ]\n",
      "[consumer_products_personal_care_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.49261317 0.4909653  0.6778133 ]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'shampoos,']\n",
      "[0.56852764 0.8634659  0.40233606]\n",
      "movies_comedy_fantasy ['grocery_gourmet_food', 'beverages', 'juices,']\n",
      "[0.3484642  0.18811533 0.19605497]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'coffee,']\n",
      "[0.4625294  0.81020916 0.5444762 ]\n",
      "snacks ['grocery_gourmet_food', 'candy_chocolate', 'gummy_candies,']\n",
      "[0.3801156  0.4380491  0.39581326]\n",
      "toys_games ['toys_games', 'sports_outdoor_play', 'ball_pits_accessories,']\n",
      "[1.         0.35104385 0.5481229 ]\n",
      "oral_health ['grocery_gourmet_food', 'candy_chocolate', 'gum,']\n",
      "[0.21657446 0.33352712 0.49986264]\n",
      "[consumer_products_personal_care_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.49261317 0.4909653  0.6778133 ]\n",
      "electronics ['health_personal_care', 'household_supplies', 'household_batteries,']\n",
      "[0.09173577 0.31411183 0.5011701 ]\n",
      "health_pain_management ['health_personal_care', 'medical_supplies_equipment', 'braces,']\n",
      "[0.47723636 0.3048831  0.22262338]\n",
      "family_kids_toys ['toys_games', 'baby_toddler_toys', 'car_seat_stroller_toys,']\n",
      "[0.70446056 0.7661211  0.6516839 ]\n",
      "outdoor_recreation ['baby_products', 'strollers', 'joggers,']\n",
      "[0.19220075 0.2763117  0.31323895]\n",
      "health_supplements ['health_personal_care', 'health_care', 'allergy,']\n",
      "[0.41859624 0.5034929  0.20858265]\n",
      "food_ingredients ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.4964146  0.41558084]\n",
      "games ['toys_games', 'games', 'board_games,']\n",
      "[0.6286931 0.9999998 0.6345357]\n",
      "pet_training_equipment ['pet_supplies', 'dogs', 'training_behavior_aids,']\n",
      "[0.7240859  0.34384218 0.54412585]\n",
      "travel_accessories ['baby_products', 'strollers', 'tandem,']\n",
      "[0.35929346 0.35034066 0.18686992]\n",
      "crafting ['toys_games', 'arts_crafts', 'easels,']\n",
      "[0.2471881  0.6962877  0.24779141]\n",
      "grooming ['beauty', 'hair_care', 'styling_products,']\n",
      "[0.36866555 0.559311   0.29788363]\n",
      "beauty_hair_care ['beauty', 'tools_accessories', 'makeup_brushes_tools,']\n",
      "[0.56852764 0.22191544 0.46881703]\n",
      "toys_puzzles ['toys_games', 'puzzles', 'jigsaw_puzzles,']\n",
      "[0.80225635 0.6792669  0.6718006 ]\n",
      "toys_gifts ['toys_games', 'dolls_accessories', 'dolls,']\n",
      "[0.8262298 0.6618003 0.5062856]\n",
      "beauty_products ['health_personal_care', 'health_care', 'therapeutic_skin_care,']\n",
      "[0.32688472 0.33715993 0.41848978]\n",
      "family_kids_toys ['toys_games', 'dress_up_pretend_play', 'pretend_play,']\n",
      "[0.7044606  0.30757248 0.30223352]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "toys_crafts ['toys_games', 'dress_up_pretend_play', 'pretend_play,']\n",
      "[0.7748218  0.33176655 0.30612317]\n",
      "parenting_baby_care ['baby_products', 'bathing_skin_care', 'bathing_tubs_seats,']\n",
      "[0.52180386 0.42000562 0.30905342]\n",
      "household_cleaning ['baby_products', 'diapering', 'diaper_pails_refills,']\n",
      "[0.30289447 0.3129572  0.35070956]\n",
      "technology_gadgets ['toys_games', 'electronics_for_kids,']\n",
      "[0.39748478 0.55962783]\n",
      "supplements ['pet_supplies', 'dogs', 'health_supplies,']\n",
      "[0.20109877 0.18904969 0.40612596]\n",
      "beauty_products ['baby_products', 'bathing_skin_care', 'soaps_cleansers,']\n",
      "[0.68828756 0.48634824 0.3142255 ]\n",
      "[grooming_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.29940915 0.32248315 0.7987232 ]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.14116849 0.4986687  0.43014672]\n",
      "snacks ['grocery_gourmet_food', 'breakfast_foods', 'breakfast_cereal_bars,']\n",
      "[0.3801156 0.5461302 0.5385059]\n",
      "pet_accessories ['pet_supplies', 'dogs', 'beds_furniture,']\n",
      "[0.83973384 0.42054087 0.3482499 ]\n",
      "parenting_supplies ['baby_products', 'diapering', 'diaper_pails_refills,']\n",
      "[0.47858173 0.2682877  0.46951944]\n",
      "food_gluten_free ['grocery_gourmet_food', 'snack_food,']\n",
      "[0.521618  0.5494003]\n",
      "food_snacks ['toys_games', 'action_toy_figures', 'accessories,']\n",
      "[0.5020278  0.36043572 0.34391132]\n",
      "beauty ['beauty', 'tools_accessories', 'mirrors,']\n",
      "[1.0000001  0.1388586  0.37953708]\n",
      "pets ['pet_supplies', 'dogs', 'grooming,']\n",
      "[0.6490211  0.8171104  0.36175692]\n",
      "toys_gifts ['toys_games', 'dress_up_pretend_play', 'pretend_play,']\n",
      "[0.8262298 0.2859007 0.271112 ]\n",
      "products_for_children ['baby_products', 'feeding', 'bottle_feeding,']\n",
      "[0.7485176  0.17218544 0.31105027]\n",
      "beauty_products ['beauty', 'skin_care', 'eyes,']\n",
      "[0.6002429  0.5132369  0.36051622]\n",
      "beauty_products ['beauty', 'fragrance', 'women_s,']\n",
      "[0.6002429  0.5137045  0.38518193]\n",
      "toys_disappointing ['toys_games', 'electronics_for_kids,']\n",
      "[0.74317586 0.4295001 ]\n",
      "discontinued_products ['toys_games', 'action_toy_figures', 'playsets,']\n",
      "[0.3079058  0.25024936 0.2217283 ]\n",
      "toys_disappointing ['health_personal_care', 'sexual_wellness', 'adult_toys_games,']\n",
      "[0.13493031 0.2815573  0.6469578 ]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "parenting_toys ['toys_games', 'baby_toddler_toys', 'push_pull_toys,']\n",
      "[0.7143564  0.77363896 0.629874  ]\n",
      "toys_crafts ['toys_games', 'arts_crafts', 'easels,']\n",
      "[0.7748218  0.80205655 0.28905836]\n",
      "product_disappointment ['pet_supplies', 'cats', 'grooming,']\n",
      "[0.30444765 0.19337036 0.17226706]\n",
      "beauty_products ['beauty', 'skin_care,']\n",
      "[0.600243  0.5135528]\n",
      "grooming ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.36866555 0.559311   0.29628313]\n",
      "recommendations ['toys_games', 'games,']\n",
      "[0.29542357 0.37096238]\n",
      "beauty_hair_care_disappointing ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.51589584 0.72910863 0.275177  ]\n",
      "toys_gifts ['toys_games', 'action_toy_figures', 'figures,']\n",
      "[0.8262298 0.5934945 0.3222072]\n",
      "parenting_infants ['toys_games', 'baby_toddler_toys', 'music_sound,']\n",
      "[0.30553922 0.59507287 0.18841489]\n",
      "toys_gifts ['toys_games', 'baby_toddler_toys', 'music_sound,']\n",
      "[0.8262298  0.73233944 0.348112  ]\n",
      "health_medical_devices ['health_personal_care', 'health_care,']\n",
      "[0.5506862 0.5899815]\n",
      "health_supplements ['health_personal_care', 'health_care', 'pain_relievers,']\n",
      "[0.41859624 0.5034929  0.40705895]\n",
      "product_issues ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.15031968 0.24715309 0.21052708]\n",
      "travel_accessories ['baby_products', 'strollers', 'accessories,']\n",
      "[0.35929346 0.35034066 0.63204473]\n",
      "family_kids_toys ['toys_games', 'tricycles', 'scooters_wagons,']\n",
      "[0.7044607  0.2896934  0.36982962]\n",
      "parenting_baby_care ['baby_products', 'diapering', 'diaper_pails_refills,']\n",
      "[0.5218039  0.4000964  0.40681767]\n",
      "beauty_electronics ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.25112587 0.24233092 0.2531994 ]\n",
      "[consumer_products_personal_care_shaving] ['health_personal_care', 'health_care', 'first_aid,']\n",
      "[0.49261314 0.42919007 0.20796622]\n",
      "beauty_products ['beauty', 'skin_care', 'face,']\n",
      "[0.6002429 0.5132369 0.3397303]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'shampoos,']\n",
      "[0.56852764 0.8634659  0.40233606]\n",
      "consumer_electronics_reviews ['health_personal_care', 'household_supplies', 'household_batteries,']\n",
      "[0.20636317 0.3028621  0.39910734]\n",
      "educational_toys ['toys_games', 'electronics_for_kids', 'electronic_toys,']\n",
      "[0.7383338 0.5733979 0.6966228]\n",
      "health_medical_equipment ['health_personal_care', 'medical_supplies_equipment', 'health_monitors,']\n",
      "[0.5281792  0.87382436 0.53664243]\n",
      "shopping ['baby_products', 'diapering', 'diaper_changing_kits,']\n",
      "[0.3596654  0.36907086 0.15948322]\n",
      "health_supplements ['health_personal_care', 'health_care', 'pill_cases_splitters,']\n",
      "[0.41859618 0.5034929  0.38250783]\n",
      "beauty_products ['beauty', 'fragrance', 'women_s,']\n",
      "[0.6002429  0.5137045  0.38518193]\n",
      "food_desserts ['grocery_gourmet_food', 'candy_chocolate', 'chocolate_bars,']\n",
      "[0.53026086 0.5615982  0.5219258 ]\n",
      "parenting_toys ['toys_games', 'baby_toddler_toys', 'car_seat_stroller_toys,']\n",
      "[0.71435636 0.77363884 0.63570315]\n",
      "toys_building_sets ['toys_games', 'sports_outdoor_play', 'gym_sets_swings,']\n",
      "[0.6367507  0.19992657 0.49771103]\n",
      "games ['toys_games', 'games', 'board_games,']\n",
      "[0.6286931 0.9999998 0.6345357]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'hair_loss_products,']\n",
      "[0.56852764 0.8634659  0.513765  ]\n",
      "food_gluten_free ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.3116711  0.4138553  0.37774768]\n",
      "beauty_products ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.6002429  0.5075035  0.34398517]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "food_ingredients ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.4964146  0.41558084]\n",
      "personal_care_grooming ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.60668576 0.6832817  0.57491726]\n",
      "skincare ['beauty', 'skin_care', 'eyes,']\n",
      "[0.38147843 0.8631095  0.2879519 ]\n",
      "pets ['pet_supplies', 'cats', 'health_supplies,']\n",
      "[0.6490211  0.76503944 0.21674009]\n",
      "toys_crafts ['toys_games', 'novelty_gag_toys,']\n",
      "[0.7748218 0.642296 ]\n",
      "parenting_baby_gear ['baby_products', 'gear', 'backpacks_carriers,']\n",
      "[0.5734513  0.6176512  0.41724744]\n",
      "parenting_baby_gear ['baby_products', 'gear', 'swings,']\n",
      "[0.5734513  0.6176513  0.22662759]\n",
      "pet_accessories ['baby_products', 'safety', 'edge_corner_guards,']\n",
      "[0.4117061  0.19449173 0.28448805]\n",
      "pets ['pet_supplies', 'dogs', 'feeding_watering_supplies,']\n",
      "[0.6490211  0.8171104  0.23436277]\n",
      "family_kids_toys ['toys_games', 'dolls_accessories', 'dolls,']\n",
      "[0.7044606  0.54684466 0.5090292 ]\n",
      "toys_action_figures ['toys_games', 'action_toy_figures', 'playsets,']\n",
      "[0.73259896 0.96602476 0.2934454 ]\n",
      "pets ['pet_supplies', 'cats', 'toys,']\n",
      "[0.6490211  0.7650394  0.45009634]\n",
      "health_foot_care ['health_personal_care', 'health_care', 'foot_care,']\n",
      "[0.60599667 0.7146396  0.8187767 ]\n",
      "gardening_equipment ['toys_games', 'sports_outdoor_play', 'gardening_tools,']\n",
      "[0.28538254 0.35112664 0.7641832 ]\n",
      "pets ['pet_supplies', 'cats', 'food,']\n",
      "[0.6490211  0.7650394  0.40150064]\n",
      "snacks ['grocery_gourmet_food', 'snack_food', 'crackers,']\n",
      "[0.3801156  0.7213256  0.40446734]\n",
      "fashion_beauty_product_issues ['health_personal_care', 'medical_supplies_equipment', 'braces,']\n",
      "[0.2629354  0.24312848 0.20877479]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "grooming ['beauty', 'hair_care', 'styling_products,']\n",
      "[0.36866555 0.559311   0.29788363]\n",
      "parenting_supplies ['baby_products', 'nursery', 'furniture,']\n",
      "[0.47858167 0.48562878 0.26067615]\n",
      "food_beverages ['grocery_gourmet_food', 'pantry_staples', 'packaged_meals_side_dishes,']\n",
      "[0.4625294  0.32166666 0.5208067 ]\n",
      "family_kids_toys ['toys_games', 'stuffed_animals_plush', 'puppets,']\n",
      "[0.7044607 0.562497  0.3817631]\n",
      "family_kids_toys ['toys_games', 'electronics_for_kids', 'electronic_toys,']\n",
      "[0.7044607  0.57261604 0.6561858 ]\n",
      "beauty_product_disappointment ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.3042554  0.3199864  0.31656757]\n",
      "toys_gifts ['toys_games', 'dolls_accessories', 'dolls,']\n",
      "[0.8262298 0.6618003 0.5062856]\n",
      "snacks ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.3801156  0.30834675]\n",
      "health_medical_supplies ['health_personal_care', 'health_care', 'pain_relievers,']\n",
      "[0.5720322  0.63462204 0.33974347]\n",
      "toys_games ['toys_games', 'puzzles', 'floor_puzzles,']\n",
      "[1.         0.33320636 0.36673138]\n",
      "health_orthopedics ['health_personal_care', 'household_supplies', 'cleaning_tools,']\n",
      "[0.51135075 0.13482112 0.12278848]\n",
      "pets ['pet_supplies', 'dogs', 'health_supplies,']\n",
      "[0.6490211  0.8171104  0.21674009]\n",
      "food_ingredients ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.4964146  0.41558084]\n",
      "parenting_baby_gear ['baby_products', 'strollers', 'accessories,']\n",
      "[0.5734513  0.29947752 0.39456603]\n",
      "consumer_complaints ['toys_games', 'tricycles', 'scooters_wagons,']\n",
      "[0.13819432 0.10725329 0.12048663]\n",
      "crafting ['toys_games', 'games,']\n",
      "[0.24718814 0.23207662]\n",
      "parenting_infants ['baby_products', 'strollers', 'joggers,']\n",
      "[0.49940825 0.36596358 0.19401814]\n",
      "personal_care_deodorants ['health_personal_care', 'health_care', 'pain_relievers,']\n",
      "[0.5563458  0.46046865 0.37294823]\n",
      "toys_building_sets ['toys_games', 'learning_education', 'mathematics_counting,']\n",
      "[0.6367507  0.21945779 0.18950213]\n",
      "pet_training_equipment ['pet_supplies', 'dogs', 'collars,']\n",
      "[0.72408587 0.34384218 0.37609577]\n",
      "personal_care_grooming ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.60668576 0.6832817  0.57491726]\n",
      "recipes ['pet_supplies', 'cats', 'food,']\n",
      "[0.24200572 0.24443161 0.5228987 ]\n",
      "[grooming_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.29940915 0.32248315 0.7987232 ]\n",
      "breastfeeding ['baby_products', 'feeding', 'bottle_feeding,']\n",
      "[0.4365404  0.5234327  0.43145227]\n",
      "food_ingredients ['grocery_gourmet_food', 'pantry_staples', 'sauces,']\n",
      "[0.4964146 0.4042844 0.4145476]\n",
      "outdoor_recreation ['toys_games', 'sports_outdoor_play', 'pools_water_fun,']\n",
      "[0.3156681 0.7671351 0.424809 ]\n",
      "snacks ['grocery_gourmet_food', 'snack_food', 'popcorn,']\n",
      "[0.3801156 0.7213256 0.5128667]\n",
      "products_for_children ['toys_games', 'arts_crafts', 'drawing_painting_supplies,']\n",
      "[0.48521566 0.3240855  0.3133432 ]\n",
      "[grooming_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.29940915 0.32248315 0.7987232 ]\n",
      "pets ['toys_games', 'stuffed_animals_plush', 'puppets,']\n",
      "[0.34419277 0.46881554 0.4106488 ]\n",
      "toys_games ['toys_games', 'electronics_for_kids', 'electronic_toys,']\n",
      "[1.         0.49439082 0.7392995 ]\n",
      "toys_building_sets ['toys_games', 'building_toys', 'building_sets,']\n",
      "[0.6367507 0.8604247 0.709971 ]\n",
      "beauty_products ['beauty', 'fragrance', 'women_s,']\n",
      "[0.6002429  0.5137045  0.38518193]\n",
      "toys_rc_cars ['toys_games', 'vehicles_remote_control', 'play_vehicles,']\n",
      "[0.7318508  0.43935862 0.6364649 ]\n",
      "breastfeeding ['baby_products', 'feeding', 'bottle_feeding,']\n",
      "[0.4365404  0.5234327  0.43145227]\n",
      "toys_games ['toys_games', 'puzzles', 'jigsaw_puzzles,']\n",
      "[1.         0.33320636 0.43408972]\n",
      "parenting_baby_care ['baby_products', 'nursery', 'bedding,']\n",
      "[0.52180386 0.50921285 0.24419697]\n",
      "beauty_products ['beauty', 'skin_care', 'body,']\n",
      "[0.6002429  0.5132369  0.36049676]\n",
      "consumer_electronics_negative ['pet_supplies', 'fish_aquatic_pets', 'aquarium_heaters,']\n",
      "[0.2438624  0.24906117 0.34543794]\n",
      "perfume ['beauty', 'fragrance', 'women_s,']\n",
      "[0.4922841  0.82422227 0.23284349]\n",
      "toys_disappointing ['toys_games', 'electronics_for_kids', 'personal_video_players_accessories,']\n",
      "[0.743176   0.41942403 0.4044471 ]\n",
      "beauty_electronics ['pet_supplies', 'fish_aquatic_pets', 'aquariums,']\n",
      "[0.2774259  0.27192116 0.23900604]\n",
      "beauty_products ['beauty', 'makeup', 'eyes,']\n",
      "[0.6002429  0.53437495 0.36051622]\n",
      "health_pain_management ['health_personal_care', 'medical_supplies_equipment', 'braces,']\n",
      "[0.47723636 0.3048831  0.22262338]\n",
      "product_reviews_negative ['pet_supplies', 'fish_aquatic_pets', 'aquariums,']\n",
      "[0.22363317 0.1941354  0.15229346]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "crafting ['toys_games', 'sports_outdoor_play', 'sand_water_tables,']\n",
      "[0.24718814 0.19149753 0.15566252]\n",
      "skincare ['beauty', 'skin_care', 'body,']\n",
      "[0.38147843 0.8631095  0.3030233 ]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.14116849 0.4986687  0.8474369 ]\n",
      "household_cleaning ['health_personal_care', 'household_supplies', 'household_cleaning,']\n",
      "[0.38114545 0.6732229  0.983103  ]\n",
      "snacks ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.08829791 0.30636495 0.46617195]\n",
      "beauty_products ['beauty', 'hair_care', 'shampoo_conditioner_sets,']\n",
      "[0.6002429  0.50750345 0.36710754]\n",
      "personal_care_deodorants ['health_personal_care', 'health_care', 'first_aid,']\n",
      "[0.5563458  0.46046865 0.30773574]\n",
      "skincare ['beauty', 'skin_care', 'body,']\n",
      "[0.38147843 0.8631095  0.3030233 ]\n",
      "family_kids_toys ['toys_games', 'puzzles,']\n",
      "[0.70446056 0.29601792]\n",
      "pets ['pet_supplies', 'cats', 'beds_furniture,']\n",
      "[0.6490211  0.76503944 0.23375496]\n",
      "pet_care ['pet_supplies', 'cats', 'litter_housebreaking,']\n",
      "[0.7132469  0.47258878 0.5294932 ]\n",
      "snacks ['grocery_gourmet_food', 'breakfast_foods', 'cereals,']\n",
      "[0.3801156 0.5461302 0.5906427]\n",
      "supplements_digestive_health ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.32565707 0.6826551  0.5343984 ]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.14116849 0.4986687  0.8474369 ]\n",
      "health_pain_management ['health_personal_care', 'health_care', 'alternative_medicine,']\n",
      "[0.47723636 0.52291054 0.48475105]\n",
      "pet_accessories ['pet_supplies', 'dogs', 'collars,']\n",
      "[0.83973384 0.42054087 0.3731814 ]\n",
      "games ['toys_games', 'games,']\n",
      "[0.6286931 0.8925999]\n",
      "beauty_hair_care ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.5165859  0.52054894 0.59265584]\n",
      "health_medical_equipment ['health_personal_care', 'medical_supplies_equipment', 'health_monitors,']\n",
      "[0.5281792  0.87382436 0.53664243]\n",
      "parenting_baby_gear ['health_personal_care', 'health_care', 'incontinence,']\n",
      "[0.35515714 0.33535847 0.27263218]\n",
      "beverages_tea ['grocery_gourmet_food', 'beverages', 'tea,']\n",
      "[0.18640673 0.7767085  0.7240508 ]\n",
      "beauty_products ['beauty', 'skin_care', 'face,']\n",
      "[0.6002429 0.5132369 0.3397303]\n",
      "pet_care ['pet_supplies', 'cats', 'health_supplies,']\n",
      "[0.7132469  0.47258878 0.41307944]\n",
      "music_instruments ['toys_games', 'electronics_for_kids', 'music_players_karaoke,']\n",
      "[0.37671122 0.41554475 0.62463   ]\n",
      "home_and_garden_sleep_technology ['baby_products', 'gear', 'swings,']\n",
      "[0.2585099  0.19977409 0.18030366]\n",
      "household_supplies ['health_personal_care', 'household_supplies', 'cleaning_tools,']\n",
      "[0.30978552 0.9999998  0.34542257]\n",
      "family_kids_toys ['toys_games', 'electronics_for_kids', 'electronic_toys,']\n",
      "[0.7044607  0.57261604 0.6561858 ]\n",
      "pet_toys ['pet_supplies', 'dogs', 'toys,']\n",
      "[0.7045902  0.47681287 0.7075868 ]\n",
      "pet_accessories ['pet_supplies', 'bunny_rabbit_central', 'houses_habitats,']\n",
      "[0.83973384 0.30584913 0.29835725]\n",
      "pet_training_equipment ['pet_supplies', 'dogs', 'houses,']\n",
      "[0.72408587 0.34384218 0.12728576]\n",
      "grooming ['toys_games', 'dolls_accessories', 'dolls,']\n",
      "[0.1781989  0.26982746 0.32354516]\n",
      "perfume ['beauty', 'fragrance', 'women_s,']\n",
      "[0.4922841  0.82422227 0.23284349]\n",
      "beauty_products ['beauty', 'fragrance,']\n",
      "[0.6002429 0.5173706]\n",
      "health_medical_equipment ['health_personal_care', 'medical_supplies_equipment', 'braces,']\n",
      "[0.5281792  0.87382436 0.26488477]\n",
      "food_ingredients ['grocery_gourmet_food', 'pantry_staples', 'sauces,']\n",
      "[0.4964146 0.4042844 0.4145476]\n",
      "toys_crafts ['toys_games', 'novelty_gag_toys', 'magic_kits_accessories,']\n",
      "[0.7748219 0.6481054 0.5830973]\n",
      "perfume ['beauty', 'fragrance', 'men_s,']\n",
      "[0.4922841  0.82422227 0.19620812]\n",
      "skincare ['baby_products', 'feeding,']\n",
      "[0.32482296 0.15050969]\n",
      "recipes ['grocery_gourmet_food', 'pantry_staples', 'canned_jarred_food,']\n",
      "[0.43134737 0.32638174 0.43596968]\n",
      "beauty_products ['beauty', 'hair_care', 'hair_color,']\n",
      "[0.6002429  0.5075035  0.45785445]\n",
      "personal_care_scented ['health_personal_care', 'personal_care', 'lip_care_products,']\n",
      "[0.58830625 0.6916433  0.4321191 ]\n",
      "family_kids_toys ['toys_games', 'sports_outdoor_play', 'sports,']\n",
      "[0.7044607  0.21965021 0.3056432 ]\n",
      "electronics ['health_personal_care', 'health_care', 'alternative_medicine,']\n",
      "[0.09173577 0.14502104 0.16540018]\n",
      "toys_games ['toys_games', 'baby_toddler_toys', 'stacking_nesting_toys,']\n",
      "[1.         0.69986665 0.5576756 ]\n",
      "pet_care_value ['pet_supplies', 'birds', 'cages_accessories,']\n",
      "[0.6197618 0.1653223 0.3278571]\n",
      "pets ['pet_supplies', 'cats', 'beds_furniture,']\n",
      "[0.6490211  0.76503944 0.23375496]\n",
      "beauty_products ['beauty', 'skin_care', 'face,']\n",
      "[0.6002429 0.5132369 0.3397303]\n",
      "pet_clothing ['pet_supplies', 'dogs', 'apparel_accessories,']\n",
      "[0.6580496  0.43755728 0.6580452 ]\n",
      "family_kids_toys ['toys_games', 'hobbies,']\n",
      "[0.70446056 0.4572332 ]\n",
      "snacks ['grocery_gourmet_food', 'snack_food', 'chips_crisps,']\n",
      "[0.3801156 0.7213256 0.4477952]\n",
      "educational_toys ['toys_games', 'learning_education', 'science,']\n",
      "[0.73833376 0.63707954 0.34196737]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'coffee,']\n",
      "[0.4625294  0.81020916 0.5444762 ]\n",
      "family_kids_toys ['toys_games', 'baby_toddler_toys,']\n",
      "[0.7044606  0.76504594]\n",
      "[consumer_products_personal_care_shaving] ['baby_products', 'diapering', 'wipes_holders,']\n",
      "[0.4852686  0.30934975 0.25820747]\n",
      "toys_gifts ['toys_games', 'stuffed_animals_plush', 'animals_figures,']\n",
      "[0.8262298  0.6696056  0.42592928]\n",
      "pet_toys ['pet_supplies', 'dogs', 'toys,']\n",
      "[0.7045902  0.47681287 0.7075868 ]\n",
      "products_for_children ['toys_games', 'dolls_accessories', 'dollhouses,']\n",
      "[0.4852156  0.44024724 0.20987211]\n",
      "toys_action_figures ['toys_games', 'action_toy_figures', 'playsets,']\n",
      "[0.73259896 0.96602476 0.2934454 ]\n",
      "oral_health ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.49894044 0.3455468  0.8151215 ]\n",
      "pet_training_equipment ['pet_supplies', 'dogs', 'training_behavior_aids,']\n",
      "[0.7240859  0.34384218 0.54412585]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'tea,']\n",
      "[0.4625294  0.81020916 0.45982718]\n",
      "products_for_children ['baby_products', 'diapering', 'disposable_diapers,']\n",
      "[0.7485176  0.21030843 0.40734142]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "perfume ['beauty', 'fragrance', 'women_s,']\n",
      "[0.4922841  0.82422227 0.23284349]\n",
      "household_cleaning ['health_personal_care', 'household_supplies', 'paper_plastic,']\n",
      "[0.38114545 0.6732229  0.31713486]\n",
      "reproductive_health ['health_personal_care', 'health_care', 'family_planning_contraceptives,']\n",
      "[0.59385204 0.6262792  0.616131  ]\n",
      "pet_care_products_bad_quality ['pet_supplies', 'cats', 'educational_repellents,']\n",
      "[0.5689431  0.3194784  0.26401496]\n",
      "fragrances ['beauty', 'fragrance', 'women_s,']\n",
      "[0.41336948 0.94172305 0.30460793]\n",
      "food_ingredients ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.4964146  0.41558084]\n",
      "health_pain_management ['health_personal_care', 'medical_supplies_equipment', 'braces,']\n",
      "[0.47723636 0.3048831  0.22262338]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.41859624 0.6872301  0.5225135 ]\n",
      "snacks ['grocery_gourmet_food', 'snack_food', 'pretzels,']\n",
      "[0.3801156  0.7213256  0.55793816]\n",
      "food_ingredients ['pet_supplies', 'fish_aquatic_pets', 'water_treatments,']\n",
      "[0.31532755 0.264932   0.2674883 ]\n",
      "beauty_hair_care_disappointing ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.411703   0.4149008  0.51654816]\n",
      "beauty_products ['beauty', 'bath_body', 'bath,']\n",
      "[0.6002429  0.45510778 0.33317065]\n",
      "pet_care ['pet_supplies', 'dogs', 'beds_furniture,']\n",
      "[0.7132469  0.48187137 0.3461581 ]\n",
      "food_beverages ['baby_products', 'feeding', 'bottle_feeding,']\n",
      "[0.41048637 0.42780656 0.45308998]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.41859624 0.6872301  0.5225135 ]\n",
      "beauty_products ['beauty', 'makeup', 'nails,']\n",
      "[0.6002429  0.53437495 0.24555218]\n",
      "beauty_hair_care ['beauty', 'bath_body', 'cleansers,']\n",
      "[0.56852764 0.48114732 0.31050816]\n",
      "beauty ['beauty', 'tools_accessories', 'mirrors,']\n",
      "[1.0000001  0.1388586  0.37953708]\n",
      "family_kids_toys ['baby_products', 'gear', 'swings,']\n",
      "[0.54590905 0.34908116 0.25348374]\n",
      "food_ingredients ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.4964146  0.41558084]\n",
      "beauty_products ['beauty', 'fragrance', 'women_s,']\n",
      "[0.6002429  0.5137045  0.38518193]\n",
      "breastfeeding ['baby_products', 'feeding', 'pillows_stools,']\n",
      "[0.4365404  0.5234327  0.21055385]\n",
      "pets ['pet_supplies', 'birds', 'cages_accessories,']\n",
      "[0.6490211  0.56893766 0.35643563]\n",
      "consumer_electronics_negative ['pet_supplies', 'fish_aquatic_pets', 'aquariums,']\n",
      "[0.2438624  0.24906117 0.19198284]\n",
      "beauty_products ['health_personal_care', 'personal_care', 'lip_care_products,']\n",
      "[0.32688472 0.35566658 0.69598824]\n",
      "toys_action_figures ['toys_games', 'novelty_gag_toys,']\n",
      "[0.73259896 0.57556844]\n",
      "pets ['pet_supplies', 'cats', 'feeding_watering_supplies,']\n",
      "[0.6490211  0.76503944 0.23436277]\n",
      "lifestyle_diet_nutrition ['beauty', 'skin_care', 'body,']\n",
      "[0.19575183 0.24557824 0.28472915]\n",
      "games ['toys_games', 'games', 'card_games,']\n",
      "[0.6286931  0.9999998  0.63236713]\n",
      "food_desserts ['grocery_gourmet_food', 'candy_chocolate', 'gummy_candy,']\n",
      "[0.53026086 0.5615982  0.37825465]\n",
      "food_ingredients ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.4964146  0.41558084]\n",
      "beauty_makeup ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.636787   0.4905007  0.35080862]\n",
      "parenting_baby_care ['baby_products', 'feeding', 'bottle_feeding,']\n",
      "[0.5218039  0.34358796 0.35637477]\n",
      "reviews ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.17237277 0.13276835 0.15015501]\n",
      "food_beverages ['grocery_gourmet_food', 'pantry_staples', 'pasta_noodles,']\n",
      "[0.4625294  0.32166666 0.39090937]\n",
      "reviews ['pet_supplies', 'fish_aquatic_pets', 'pumps_filters,']\n",
      "[0.10331374 0.13107044 0.02703043]\n",
      "parenting ['baby_products', 'strollers', 'tandem,']\n",
      "[0.3656216  0.286596   0.28950506]\n",
      "crafting ['toys_games', 'hobbies', 'model_building_kits_tools,']\n",
      "[0.2471881  0.40407816 0.3132738 ]\n",
      "pet_training_equipment ['pet_supplies', 'dogs', 'training_behavior_aids,']\n",
      "[0.7240859  0.34384218 0.54412585]\n",
      "household_cleaning ['baby_products', 'bathing_skin_care', 'skin_care,']\n",
      "[0.3028945  0.46206945 0.36702088]\n",
      "beauty_products ['beauty', 'hair_care', 'shampoo_plus_conditioner,']\n",
      "[0.6002429  0.50750345 0.43040314]\n",
      "family_kids_toys ['toys_games', 'vehicles_remote_control', 'play_vehicles,']\n",
      "[0.7044607  0.19168657 0.4470235 ]\n",
      "family_kids_toys ['baby_products', 'nursery', 'bedding,']\n",
      "[0.54590905 0.4511707  0.28807956]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.14116849 0.4986687  0.43014672]\n",
      "pet_accessories ['pet_supplies', 'cats', 'feeding_watering_supplies,']\n",
      "[0.83973384 0.3773735  0.33253133]\n",
      "skincare ['health_personal_care', 'medical_supplies_equipment', 'braces,']\n",
      "[0.3292828  0.19329157 0.1472637 ]\n",
      "parenting_potty_training ['baby_products', 'potty_training', 'potties_seats,']\n",
      "[0.3604492  0.8577633  0.51921004]\n",
      "snacks ['grocery_gourmet_food', 'candy_chocolate', 'suckers_lollipops,']\n",
      "[0.3801156  0.4380491  0.34593603]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.41859624 0.6872301  0.5225135 ]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "beauty_products ['beauty', 'bath_body', 'cleansers,']\n",
      "[0.6002429  0.45510772 0.3596702 ]\n",
      "beauty_products ['beauty', 'makeup', 'face,']\n",
      "[0.6002429  0.53437495 0.3397303 ]\n",
      "toys_gifts ['health_personal_care', 'sexual_wellness', 'adult_toys_games,']\n",
      "[0.21891694 0.33564115 0.7091618 ]\n",
      "pet_accessories ['pet_supplies', 'dogs', 'litter_housebreaking,']\n",
      "[0.83973384 0.42054087 0.39248812]\n",
      "food_beverages ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.24092104 0.4721323  0.6921588 ]\n",
      "grooming ['beauty', 'bath_body,']\n",
      "[0.36866555 0.3003666 ]\n",
      "food_ingredients ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.4964146  0.41558084]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.14116849 0.4986687  0.8474369 ]\n",
      "food_desserts ['grocery_gourmet_food', 'gourmet_gifts', 'snack_gifts,']\n",
      "[0.53026086 0.36233836 0.5980147 ]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.14116849 0.4986687  0.8474369 ]\n",
      "pets ['pet_supplies', 'dogs', 'apparel_accessories,']\n",
      "[0.6490211 0.8171104 0.1641484]\n",
      "technology_gadgets ['baby_products', 'safety', 'monitors,']\n",
      "[0.36626315 0.1812686  0.4519209 ]\n",
      "pet_grooming ['pet_supplies', 'cats', 'grooming,']\n",
      "[0.58977747 0.3667226  0.7992876 ]\n",
      "health_medical_devices ['health_personal_care', 'health_care', 'thermometers,']\n",
      "[0.5506861 0.5952703 0.3492063]\n",
      "beauty_products ['beauty', 'skin_care', 'face,']\n",
      "[0.6002429 0.5132369 0.3397303]\n",
      "shopping ['baby_products', 'diapering', 'disposable_diapers,']\n",
      "[0.3596654  0.36907086 0.31095892]\n",
      "beauty_products ['beauty', 'skin_care,']\n",
      "[0.600243  0.5135528]\n",
      "family_kids_toys ['toys_games', 'action_toy_figures', 'playsets,']\n",
      "[0.7044607 0.574806  0.3578125]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'tea,']\n",
      "[0.4625294  0.81020916 0.45982718]\n",
      "beauty_products ['beauty', 'bath_body', 'bath,']\n",
      "[0.6002429  0.45510778 0.33317065]\n",
      "food_ingredients ['grocery_gourmet_food', 'pantry_staples', 'sauces,']\n",
      "[0.4964146 0.4042844 0.4145476]\n",
      "health_pain_management ['health_personal_care', 'medical_supplies_equipment', 'braces,']\n",
      "[0.47723636 0.3048831  0.22262338]\n",
      "parenting_safety ['baby_products', 'car_seats_accessories', 'car_seats,']\n",
      "[0.3562203  0.24991295 0.27555227]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'hair_color,']\n",
      "[0.56852764 0.8634659  0.6718769 ]\n",
      "parenting_safety ['health_personal_care', 'medical_supplies_equipment', 'bathroom_aids_safety,']\n",
      "[0.3041449  0.20264982 0.447718  ]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.56852764 0.8634659  0.32811424]\n",
      "snacks ['grocery_gourmet_food', 'candy_chocolate', 'fudge,']\n",
      "[0.3801156 0.4380491 0.3853494]\n",
      "family_kids_toys ['baby_products', 'gear', 'activity_centers_entertainers,']\n",
      "[0.5459091  0.34908113 0.3308944 ]\n",
      "food_snacks ['grocery_gourmet_food', 'breakfast_foods', 'cereals,']\n",
      "[0.52415913 0.6336725  0.47389033]\n",
      "electronics_personal_care_disappointing ['baby_products', 'safety', 'monitors,']\n",
      "[0.3637699  0.24303733 0.32328343]\n",
      "[consumer_products_personal_care_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.49261317 0.4909653  0.6778133 ]\n",
      "health_wellness ['grocery_gourmet_food', 'beverages', 'tea,']\n",
      "[0.30213332 0.20388362 0.22530915]\n",
      "beauty_products ['health_personal_care', 'health_care', 'massage_relaxation,']\n",
      "[0.32688472 0.33715993 0.36842468]\n",
      "pets ['pet_supplies', 'dogs', 'toys,']\n",
      "[0.6490211  0.8171104  0.45009634]\n",
      "toys_construction ['toys_games', 'tricycles', 'scooters_wagons,']\n",
      "[0.74293154 0.274819   0.36379176]\n",
      "dental_care ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.5842742  0.52367526 0.7221868 ]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'conditioners,']\n",
      "[0.56852764 0.8634659  0.2424541 ]\n",
      "toys_dolls ['toys_games', 'dolls_accessories', 'playsets,']\n",
      "[0.80830014 0.8014586  0.28667384]\n",
      "parenting_baby_gear ['baby_products', 'diapering', 'wipes_holders,']\n",
      "[0.5734513  0.37774712 0.26728946]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.56852764 0.8634659  0.32811424]\n",
      "pet_training_equipment ['pet_supplies', 'dogs', 'training_behavior_aids,']\n",
      "[0.7240859  0.34384218 0.54412585]\n",
      "educational_toys ['toys_games', 'electronics_for_kids', 'electronic_toys,']\n",
      "[0.7383338 0.5733979 0.6966228]\n",
      "toys_disappointing ['pet_supplies', 'dogs', 'toys,']\n",
      "[0.36015946 0.27115747 0.6859719 ]\n",
      "consumer_electronics_reviews ['beauty', 'hair_care', 'styling_tools,']\n",
      "[ 0.15973508  0.20721306 -0.00171316]\n",
      "parenting_baby_care ['baby_products', 'feeding', 'highchairs_booster_seats,']\n",
      "[0.52180386 0.3435879  0.29348472]\n",
      "recipes ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.10865179 0.38173264 0.3912112 ]\n",
      "[grooming_shaving] ['pet_supplies', 'dogs', 'grooming,']\n",
      "[0.25865212 0.16617495 0.77740866]\n",
      "games_family ['toys_games', 'games', 'game_room_games,']\n",
      "[0.6862905  0.64395016 0.7121115 ]\n",
      "shopping ['baby_products', 'feeding', 'highchairs_booster_seats,']\n",
      "[0.3596654  0.24886127 0.20370004]\n",
      "toys_gifts ['toys_games', 'stuffed_animals_plush', 'animals_figures,']\n",
      "[0.8262298  0.6696056  0.42592928]\n",
      "grooming ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.20014656 0.24637152 0.5898558 ]\n",
      "toys_disappointing ['toys_games', 'stuffed_animals_plush', 'animals_figures,']\n",
      "[0.743176   0.567539   0.40361884]\n",
      "toys_action_figures ['toys_games', 'action_toy_figures', 'statues,']\n",
      "[0.73259896 0.96602476 0.35957637]\n",
      "beauty_products ['health_personal_care', 'personal_care', 'lip_care_products,']\n",
      "[0.32688472 0.35566658 0.69598824]\n",
      "food_ingredients ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.4964146  0.41558084]\n",
      "skincare ['beauty', 'skin_care', 'hands_nails,']\n",
      "[0.3814784  0.8631094  0.25657463]\n",
      "products_for_children ['baby_products', 'diapering', 'disposable_diapers,']\n",
      "[0.7485176  0.21030843 0.40734142]\n",
      "electronics ['health_personal_care', 'household_supplies', 'household_batteries,']\n",
      "[0.09173577 0.31411183 0.5011701 ]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'sports_supplements,']\n",
      "[0.41859624 0.6872301  0.80489504]\n",
      "health_medical_equipment ['health_personal_care', 'medical_supplies_equipment', 'health_monitors,']\n",
      "[0.5281792  0.87382436 0.53664243]\n",
      "parenting_supplies ['baby_products', 'diapering', 'diaper_pails_refills,']\n",
      "[0.47858173 0.2682877  0.46951944]\n",
      "consumer_electronics_reviews ['pet_supplies', 'fish_aquatic_pets', 'aquariums,']\n",
      "[0.17832471 0.18917353 0.19069768]\n",
      "health_sinus_relief ['health_personal_care', 'health_care', 'cough_cold,']\n",
      "[0.4245899  0.46367592 0.3051465 ]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.56852764 0.8634659  0.32811424]\n",
      "fragrances ['beauty', 'fragrance', 'women_s,']\n",
      "[0.41336948 0.94172305 0.30460793]\n",
      "skincare ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.3292828  0.2607405  0.22538936]\n",
      "food_ingredients ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.4964146  0.41558084]\n",
      "pet_care ['pet_supplies', 'cats', 'feeding_watering_supplies,']\n",
      "[0.7132469  0.47258878 0.31496146]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.14116849 0.4986687  0.8474369 ]\n",
      "toys_disappointing ['toys_games', 'tricycles', 'scooters_wagons,']\n",
      "[0.743176   0.2109096  0.30388153]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'tea,']\n",
      "[0.4625294  0.81020916 0.45982718]\n",
      "dissatisfied_products ['beauty', 'bath_body', 'bathing_accessories,']\n",
      "[0.21677831 0.18315332 0.32669365]\n",
      "toys_gifts ['toys_games', 'electronics_for_kids,']\n",
      "[0.8262298  0.52784604]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'coffee,']\n",
      "[0.4625294  0.81020916 0.5444762 ]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "games ['toys_games', 'games', 'trading_card_games,']\n",
      "[0.6286931  0.9999998  0.54570776]\n",
      "toys_and_games_issues ['baby_products', 'safety', 'harnesses_leashes,']\n",
      "[0.39663133 0.17751725 0.20511535]\n",
      "health_pain_management ['health_personal_care', 'medical_supplies_equipment', 'daily_living_aids,']\n",
      "[0.47723636 0.3048831  0.31758663]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.56852764 0.8634659  0.32811424]\n",
      "electronics_troubleshooting ['baby_products', 'safety', 'monitors,']\n",
      "[0.1502639  0.13140249 0.24896024]\n",
      "toys_action_figures ['toys_games', 'action_toy_figures', 'figures,']\n",
      "[0.73259896 0.96602476 0.5084648 ]\n",
      "beauty_makeup_tools ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.250043   0.28242043 0.35802624]\n",
      "home_safety ['baby_products', 'safety', 'gates_doorways,']\n",
      "[0.29812437 0.71193326 0.32766184]\n",
      "toy_food_playsets ['toys_games', 'dress_up_pretend_play', 'pretend_play,']\n",
      "[0.71424085 0.40725273 0.4302581 ]\n",
      "parenting_toys ['baby_products', 'feeding', 'pacifiers_accessories,']\n",
      "[0.60322577 0.33818454 0.4755983 ]\n",
      "fragrances ['beauty', 'fragrance', 'men_s,']\n",
      "[0.41336948 0.94172305 0.27105018]\n",
      "beauty_products ['beauty', 'makeup', 'nails,']\n",
      "[0.6002429  0.53437495 0.24555218]\n",
      "beauty_hair_care_disappointing ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.411703   0.4149008  0.51654816]\n",
      "grooming ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.36866555 0.559311   0.29628313]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "grooming ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.36866555 0.559311   0.29628313]\n",
      "parenting_baby_care ['baby_products', 'feeding', 'bottle_feeding,']\n",
      "[0.5218039  0.34358796 0.35637477]\n",
      "perfume ['beauty', 'fragrance', 'women_s,']\n",
      "[0.4922841  0.82422227 0.23284349]\n",
      "food_snacks ['grocery_gourmet_food', 'candy_chocolate', 'hard_candies,']\n",
      "[0.52415913 0.6295924  0.46397078]\n",
      "beauty_products ['beauty', 'fragrance', 'women_s,']\n",
      "[0.6002429  0.5137045  0.38518193]\n",
      "beauty_nail_care ['beauty', 'hair_care', 'styling_products,']\n",
      "[0.4474656  0.6505264  0.34134015]\n",
      "toys_games ['toys_games', 'baby_toddler_toys', 'music_sound,']\n",
      "[1.         0.69986665 0.3745697 ]\n",
      "[grooming_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.29940915 0.32248315 0.7987232 ]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.14116849 0.4986687  0.43014672]\n",
      "beauty_products ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.4019024  0.37525406]\n",
      "health_medical_equipment ['health_personal_care', 'medical_supplies_equipment', 'health_monitors,']\n",
      "[0.5281792  0.87382436 0.53664243]\n",
      "personal_care_skincare ['beauty', 'makeup', 'eyes,']\n",
      "[0.33401957 0.36058876 0.2830767 ]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.56852764 0.8634659  0.32811424]\n",
      "health_foot_care ['health_personal_care', 'health_care', 'foot_care,']\n",
      "[0.60599667 0.7146396  0.8187767 ]\n",
      "crafting ['toys_games', 'arts_crafts', 'craft_kits,']\n",
      "[0.24718814 0.69628763 0.6502445 ]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.56852764 0.8634659  0.32811424]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'hair_color,']\n",
      "[0.56852764 0.8634659  0.6718769 ]\n",
      "toys_disappointing ['toys_games', 'baby_toddler_toys,']\n",
      "[0.743176  0.6505213]\n",
      "grooming ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.36866555 0.559311   0.29628313]\n",
      "grooming ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.20014656 0.24637152 0.5898558 ]\n",
      "toys_disappointing ['toys_games', 'baby_toddler_toys', 'bath_toys,']\n",
      "[0.743176   0.66457784 0.6036217 ]\n",
      "beauty_products ['beauty', 'makeup', 'face,']\n",
      "[0.6002429  0.53437495 0.3397303 ]\n",
      "reviews ['health_personal_care', 'baby_child_care,']\n",
      "[0.17237271 0.18975641]\n",
      "family_kids_toys ['toys_games', 'sports_outdoor_play', 'gym_sets_swings,']\n",
      "[0.7044607  0.21965021 0.3250162 ]\n",
      "food_ingredients ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.4964146  0.41558084]\n",
      "product_review ['toys_games', 'puzzles', 'brain_teasers,']\n",
      "[0.32331902 0.1131646  0.1916225 ]\n",
      "pets ['pet_supplies', 'cats', 'beds_furniture,']\n",
      "[0.6490211  0.76503944 0.23375496]\n",
      "health_supplements ['grocery_gourmet_food', 'beverages', 'tea,']\n",
      "[0.21168283 0.1904825  0.19872935]\n",
      "fragrances ['beauty', 'fragrance', 'men_s,']\n",
      "[0.41336948 0.94172305 0.27105018]\n",
      "product_disappointment ['toys_games', 'tricycles', 'scooters_wagons,']\n",
      "[0.39799377 0.1545786  0.2162614 ]\n",
      "car_accessories ['baby_products', 'feeding', 'breastfeeding,']\n",
      "[0.41502446 0.07909974 0.17096116]\n",
      "family_kids_toys ['toys_games', 'learning_education', 'basic_life_skills_toys,']\n",
      "[0.7044606 0.2554841 0.5945421]\n",
      "supplements ['health_personal_care', 'health_care', 'digestion_nausea,']\n",
      "[0.14116849 0.19878933 0.23437764]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'hair_color,']\n",
      "[0.56852764 0.8634659  0.6718769 ]\n",
      "pets ['pet_supplies', 'cats', 'beds_furniture,']\n",
      "[0.6490211  0.76503944 0.23375496]\n",
      "personal_care_skincare ['beauty', 'skin_care,']\n",
      "[0.3340196 0.8304025]\n",
      "beauty_products ['beauty', 'fragrance', 'women_s,']\n",
      "[0.6002429  0.5137045  0.38518193]\n",
      "home_safety ['baby_products', 'nursery', 'bedding,']\n",
      "[0.29812437 0.2251129  0.2883856 ]\n",
      "health_pain_management ['health_personal_care', 'health_care', 'pill_cases_splitters,']\n",
      "[0.47723636 0.5229104  0.33381784]\n",
      "dissatisfied_products ['grocery_gourmet_food', 'beverages', 'tea,']\n",
      "[0.25914526 0.22478087 0.19217569]\n",
      "toys_building_sets ['toys_games', 'action_toy_figures', 'figures,']\n",
      "[0.6367507 0.5995403 0.3209295]\n",
      "health_pain_management ['health_personal_care', 'health_care', 'pain_relievers,']\n",
      "[0.47723636 0.52291054 0.7226634 ]\n",
      "health_orthopedics ['health_personal_care', 'personal_care', 'eye_care,']\n",
      "[0.51135075 0.2971534  0.22695865]\n",
      "health_menstrual_care ['health_personal_care', 'personal_care', 'feminine_care,']\n",
      "[0.6465349 0.5259549 0.5231267]\n",
      "toys_games ['toys_games', 'puzzles', 'jigsaw_puzzles,']\n",
      "[1.         0.33320636 0.43408972]\n",
      "oral_care ['grocery_gourmet_food', 'candy_chocolate', 'chewing_gum,']\n",
      "[0.26861903 0.34780926 0.5097331 ]\n",
      "games ['toys_games', 'electronics_for_kids', 'electronic_toys,']\n",
      "[0.6286931  0.24087536 0.28009713]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.14116849 0.4986687  0.43014672]\n",
      "parenting_baby_gear ['baby_products', 'strollers', 'standard,']\n",
      "[0.5734513  0.29947752 0.20732322]\n",
      "family_kids_toys ['toys_games', 'tricycles', 'scooters_wagons,']\n",
      "[0.7044607  0.2896934  0.36982962]\n",
      "snacks ['grocery_gourmet_food', 'snack_food', 'popcorn,']\n",
      "[0.3801156 0.7213256 0.5128667]\n",
      "health_medical_equipment ['health_personal_care', 'personal_care', 'ear_care,']\n",
      "[0.5281792  0.33971813 0.34515962]\n",
      "[grooming_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.29940915 0.32248315 0.7987232 ]\n",
      "supplements_digestive_health ['health_personal_care', 'nutrition_wellness', 'sports_supplements,']\n",
      "[0.32565707 0.6826551  0.70505095]\n",
      "personal_care_scented ['health_personal_care', 'personal_care', 'lip_care_products,']\n",
      "[0.58830625 0.6916433  0.4321191 ]\n",
      "educational_toys ['toys_games', 'puzzles', 'pegged_puzzles,']\n",
      "[0.7383338  0.2979286  0.39877322]\n",
      "beauty_products ['baby_products', 'feeding', 'bottle_feeding,']\n",
      "[0.68828756 0.14127734 0.31895167]\n",
      "food_desserts ['grocery_gourmet_food', 'snack_food', 'cookies,']\n",
      "[0.53026086 0.7286043  0.409176  ]\n",
      "beauty_products ['health_personal_care', 'health_care', 'massage_relaxation,']\n",
      "[0.32688472 0.33715993 0.36842468]\n",
      "camping_equipment ['health_personal_care', 'household_supplies', 'lighters,']\n",
      "[0.19728082 0.5073394  0.34231523]\n",
      "oral_health ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.49894044 0.3455468  0.8151215 ]\n",
      "pets ['pet_supplies', 'dogs', 'collars,']\n",
      "[0.6490211 0.8171104 0.5556047]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.14116849 0.4986687  0.43014672]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.14116849 0.4986687  0.8474369 ]\n",
      "toys_building_sets ['toys_games', 'baby_toddler_toys,']\n",
      "[0.6367507 0.5552167]\n",
      "toys_gifts ['toys_games', 'dress_up_pretend_play', 'pretend_play,']\n",
      "[0.8262298 0.2859007 0.271112 ]\n",
      "shopping_electronics ['baby_products', 'gifts', 'toy_banks,']\n",
      "[0.43745467 0.3927508  0.41795835]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.14116849 0.4986687  0.43014672]\n",
      "pet_training_equipment ['pet_supplies', 'dogs', 'collars,']\n",
      "[0.72408587 0.34384218 0.37609577]\n",
      "shopping ['baby_products', 'nursery', 'furniture,']\n",
      "[0.35966545 0.25138915 0.44061917]\n",
      "beauty_products ['beauty', 'bath_body', 'scrubs_body_treatments,']\n",
      "[0.6002429 0.4551077 0.4410693]\n",
      "gaming_electronics ['toys_games', 'games,']\n",
      "[0.5777886 0.4496508]\n",
      "household_cleaning ['health_personal_care', 'household_supplies', 'dishwashing,']\n",
      "[0.38114545 0.6732229  0.47959664]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'tea,']\n",
      "[0.4625294  0.81020916 0.45982718]\n",
      "pets ['pet_supplies', 'dogs', 'beds_furniture,']\n",
      "[0.6490211  0.8171104  0.23375496]\n",
      "pets ['pet_supplies', 'cats', 'carriers_strollers,']\n",
      "[0.6490211  0.76503944 0.2568917 ]\n",
      "food_gluten_free ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.521618  0.3427741]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.14116849 0.4986687  0.8474369 ]\n",
      "parenting_toys ['baby_products', 'safety', 'gates_doorways,']\n",
      "[0.60322577 0.2701091  0.33229145]\n",
      "toys_gifts ['toys_games', 'stuffed_animals_plush', 'animals_figures,']\n",
      "[0.8262298  0.6696056  0.42592928]\n",
      "car_safety ['baby_products', 'car_seats_accessories', 'car_seats,']\n",
      "[0.2951058  0.51309115 0.6094617 ]\n",
      "snacks ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.08829791 0.30636495 0.46617195]\n",
      "fitness_equipment ['health_personal_care', 'medical_supplies_equipment', 'braces,']\n",
      "[0.31356478 0.65157646 0.19595517]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'tea,']\n",
      "[0.4625294  0.81020916 0.45982718]\n",
      "parenting_toys ['baby_products', 'safety', 'kitchen_safety,']\n",
      "[0.60322577 0.2701091  0.298276  ]\n",
      "parenting_baby_gear ['baby_products', 'nursery', 'bedding,']\n",
      "[0.5734513  0.4477723  0.27238256]\n",
      "pets ['toys_games', 'sports_outdoor_play', 'pogo_sticks_hoppers,']\n",
      "[0.34419274 0.17771569 0.25768673]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.14116849 0.4986687  0.8474369 ]\n",
      "family_kids_toys ['toys_games', 'vehicles_remote_control', 'play_vehicles,']\n",
      "[0.7044607  0.19168657 0.4470235 ]\n",
      "home_kitchen ['health_personal_care', 'household_supplies', 'dishwashing,']\n",
      "[0.27794954 0.5449165  0.34049332]\n",
      "games ['toys_games', 'games', 'card_games,']\n",
      "[0.6286931  0.9999998  0.63236713]\n",
      "pet_care ['pet_supplies', 'cats', 'health_supplies,']\n",
      "[0.7132469  0.47258878 0.41307944]\n",
      "beauty_products ['beauty', 'bath_body', 'sets,']\n",
      "[0.6002429  0.45510778 0.23849943]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.14116849 0.4986687  0.8474369 ]\n",
      "reviews ['beauty', 'makeup', 'face,']\n",
      "[0.33836675 0.25504902 0.22368911]\n",
      "parenting_safety ['baby_products', 'gear', 'backpacks_carriers,']\n",
      "[0.3562203  0.11257708 0.19922985]\n",
      "household_cleaning ['health_personal_care', 'household_supplies', 'cleaning_tools,']\n",
      "[0.38114545 0.6732229  0.6113004 ]\n",
      "parenting_baby_gear ['baby_products', 'nursery,']\n",
      "[0.5734513  0.45451647]\n",
      "toys_games ['toys_games', 'electronics_for_kids', 'plug_play_video_games,']\n",
      "[1.         0.4943908  0.59384114]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'tea,']\n",
      "[0.4625294  0.81020916 0.45982718]\n",
      "board_games ['toys_games', 'games', 'board_games,']\n",
      "[0.7080685 0.6716292 0.9561053]\n",
      "family_kids_toys ['toys_games', 'arts_crafts', 'drawing_painting_supplies,']\n",
      "[0.7044607  0.44362938 0.30246302]\n",
      "parenting_baby_gear ['baby_products', 'diapering', 'disposable_diapers,']\n",
      "[0.5734513  0.37774715 0.38600895]\n",
      "recipes ['health_personal_care', 'personal_care', 'lip_care_products,']\n",
      "[0.10865179 0.1155851  0.309343  ]\n",
      "family_kids_toys ['toys_games', 'dress_up_pretend_play', 'pretend_play,']\n",
      "[0.7044606  0.30757248 0.30223352]\n",
      "[grooming_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.29940915 0.32248315 0.7987232 ]\n",
      "beauty_makeup_tools ['beauty', 'makeup', 'face,']\n",
      "[0.4949106 0.6271721 0.3502535]\n",
      "[grooming_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.29940915 0.32248315 0.7987232 ]\n",
      "recommendations ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.2844848  0.29256108 0.04459902]\n",
      "household_cleaning ['health_personal_care', 'household_supplies', 'cleaning_tools,']\n",
      "[0.38114545 0.6732229  0.6113004 ]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.14116849 0.4986687  0.8474369 ]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.14116849 0.4986687  0.8474369 ]\n",
      "oral_health ['health_personal_care', 'health_care,']\n",
      "[0.49894047 0.5368437 ]\n",
      "beauty_products ['beauty', 'skin_care', 'face,']\n",
      "[0.6002429 0.5132369 0.3397303]\n",
      "fragrances ['health_personal_care', 'health_care', 'massage_relaxation,']\n",
      "[0.11397116 0.11143333 0.29627717]\n",
      "pets ['pet_supplies', 'dogs', 'treats,']\n",
      "[0.6490211 0.8171104 0.5202011]\n",
      "home_and_garden_sleep_technology ['health_personal_care', 'health_care', 'incontinence,']\n",
      "[0.2289142  0.23203401 0.19359793]\n",
      "toys_rc_cars ['toys_games', 'vehicles_remote_control', 'play_vehicles,']\n",
      "[0.7318508  0.43935862 0.6364649 ]\n",
      "skincare ['beauty', 'skin_care', 'face,']\n",
      "[0.38147843 0.8631095  0.37366784]\n",
      "toys_bratz ['toys_games', 'dolls_accessories', 'playsets,']\n",
      "[0.7005142  0.5041546  0.30797037]\n",
      "toys_crafts ['baby_products', 'gear', 'baby_gyms_playmats,']\n",
      "[0.5441477  0.37641138 0.5346677 ]\n",
      "beauty_products ['beauty', 'fragrance', 'women_s,']\n",
      "[0.6002429  0.5137045  0.38518193]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "health_medical_supplies ['baby_products', 'diapering', 'diaper_pails_refills,']\n",
      "[0.3524618  0.23488322 0.4284199 ]\n",
      "beauty_products ['beauty', 'hair_care', 'hair_color,']\n",
      "[0.6002429  0.5075035  0.45785445]\n",
      "fitness_equipment ['health_personal_care', 'medical_supplies_equipment', 'braces,']\n",
      "[0.31356478 0.65157646 0.19595517]\n",
      "health_medical_equipment ['health_personal_care', 'medical_supplies_equipment', 'braces,']\n",
      "[0.5281792  0.87382436 0.26488477]\n",
      "family_kids_toys ['toys_games', 'action_toy_figures', 'playsets,']\n",
      "[0.7044607 0.574806  0.3578125]\n",
      "beauty_products ['beauty', 'skin_care', 'hands_nails,']\n",
      "[0.6002429  0.5132368  0.31687984]\n",
      "pets ['pet_supplies', 'dogs', 'houses,']\n",
      "[0.6490211  0.8171104  0.40030167]\n",
      "pet_care_value ['health_personal_care', 'health_care', 'first_aid,']\n",
      "[0.31204075 0.38438478 0.21033746]\n",
      "fragrances ['beauty', 'fragrance', 'men_s,']\n",
      "[0.41336948 0.94172305 0.27105018]\n",
      "toys_games ['toys_games', 'grown_up_toys,']\n",
      "[1.        0.7006286]\n",
      "pet_accessories ['health_personal_care', 'health_care', 'pill_cases_splitters,']\n",
      "[0.19411609 0.23034301 0.2893517 ]\n",
      "toys_puzzles ['toys_games', 'electronics_for_kids,']\n",
      "[0.8022562  0.45366833]\n",
      "consumer_electronics ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.16537991 0.21780223 0.0448065 ]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'tea,']\n",
      "[0.4625294  0.81020916 0.45982718]\n",
      "health_supplements ['health_personal_care', 'health_care', 'cough_cold,']\n",
      "[0.41859624 0.5034929  0.18797192]\n",
      "health_foot_care ['health_personal_care', 'health_care', 'foot_care,']\n",
      "[0.60599667 0.7146396  0.8187767 ]\n",
      "toys_action_figures ['toys_games', 'action_toy_figures', 'figures,']\n",
      "[0.73259896 0.96602476 0.5084648 ]\n",
      "toys_building_sets ['toys_games', 'hobbies', 'model_building_kits_tools,']\n",
      "[0.6367507  0.27306437 0.4791154 ]\n",
      "breastfeeding ['health_personal_care', 'baby_child_care,']\n",
      "[0.2520478  0.45758328]\n",
      "toys_dolls ['toys_games', 'dolls_accessories', 'dolls,']\n",
      "[0.80830014 0.8014586  0.7440442 ]\n",
      "recommendations ['health_personal_care', 'health_care', 'pain_relievers,']\n",
      "[0.20413636 0.19065425 0.23033452]\n",
      "health_medical_equipment ['health_personal_care', 'health_care', 'first_aid,']\n",
      "[0.5281792  0.59684217 0.34510526]\n",
      "health_medical_supplies ['health_personal_care', 'health_care', 'first_aid,']\n",
      "[0.5720322  0.63462204 0.40630922]\n",
      "health_medical_supplies ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.5720322  0.43392247 0.44347876]\n",
      "parenting_safety ['baby_products', 'safety', 'gates_doorways,']\n",
      "[0.3562203  0.60538805 0.21333688]\n",
      "toys_and_games_issues ['baby_products', 'feeding', 'solid_feeding,']\n",
      "[0.39663133 0.16435882 0.16495317]\n",
      "family_kids_toys ['baby_products', 'gear', 'swings,']\n",
      "[0.54590905 0.34908116 0.25348374]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'hot_cocoa,']\n",
      "[0.4625294  0.81020916 0.39736944]\n",
      "oral_care ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.5127526 0.5296027 0.8284817]\n",
      "toys_gifts ['toys_games', 'dolls_accessories', 'dollhouses,']\n",
      "[0.8262298 0.6618003 0.4156043]\n",
      "seniors_incontinence ['health_personal_care', 'medical_supplies_equipment', 'bathroom_aids_safety,']\n",
      "[0.30778053 0.24029292 0.42662778]\n",
      "toys_games ['toys_games', 'action_toy_figures', 'figures,']\n",
      "[1.        0.6677868 0.373444 ]\n",
      "food_ingredients ['grocery_gourmet_food', 'sauces_dips', 'sauces,']\n",
      "[0.4964146  0.40615657 0.4145476 ]\n",
      "electronics ['health_personal_care', 'baby_child_care,']\n",
      "[0.09173578 0.18384162]\n",
      "oral_health ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.49894044 0.3455468  0.8151215 ]\n",
      "camping_equipment ['toys_games', 'tricycles', 'scooters_wagons,']\n",
      "[0.39298335 0.29524353 0.39533994]\n",
      "games ['toys_games', 'games', 'board_games,']\n",
      "[0.6286931 0.9999998 0.6345357]\n",
      "toys_games ['baby_products', 'gear', 'baby_gyms_playmats,']\n",
      "[0.5595431  0.36985925 0.6100372 ]\n",
      "dissatisfied_products ['health_personal_care', 'health_care', 'first_aid,']\n",
      "[0.15280508 0.15348063 0.12428025]\n",
      "toys_games ['toys_games', 'building_toys', 'building_sets,']\n",
      "[1.         0.7156065  0.22913986]\n",
      "beauty_products ['beauty', 'makeup', 'nails,']\n",
      "[0.6002429  0.53437495 0.24555218]\n",
      "family_kids_toys ['toys_games', 'baby_toddler_toys,']\n",
      "[0.7044606  0.76504594]\n",
      "toys_building_sets ['toys_games', 'building_toys', 'building_sets,']\n",
      "[0.6367507 0.8604247 0.709971 ]\n",
      "educational_toys ['toys_games', 'puzzles', 'floor_puzzles,']\n",
      "[0.7383338  0.2979286  0.27142492]\n",
      "[consumer_products_personal_care_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.49261317 0.4909653  0.6778133 ]\n",
      "pets ['pet_supplies', 'cats', 'toys,']\n",
      "[0.6490211  0.7650394  0.45009634]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'tea,']\n",
      "[0.4625294  0.81020916 0.45982718]\n",
      "pet_accessories ['pet_supplies', 'cats', 'grooming,']\n",
      "[0.83973384 0.37737352 0.30617255]\n",
      "parenting_baby_care ['baby_products', 'gear', 'swings,']\n",
      "[0.52180386 0.16288234 0.19225696]\n",
      "supplements ['pet_supplies', 'dogs', 'health_supplies,']\n",
      "[0.20109877 0.18904969 0.40612596]\n",
      "pets ['pet_supplies', 'cats', 'feeding_watering_supplies,']\n",
      "[0.6490211  0.76503944 0.23436277]\n",
      "toys_games ['toys_games', 'action_toy_figures', 'playsets,']\n",
      "[1.         0.6677868  0.42744642]\n",
      "personal_care_skincare ['beauty', 'skin_care', 'eyes,']\n",
      "[0.33401957 0.84962463 0.28307664]\n",
      "pets ['pet_supplies', 'dogs', 'apparel_accessories,']\n",
      "[0.6490211 0.8171104 0.1641484]\n",
      "pet_supplies ['pet_supplies', 'dogs', 'treats,']\n",
      "[1.0000001  0.4504475  0.40514374]\n",
      "consumer_electronics ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.16537991 0.21780223 0.0448065 ]\n",
      "pet_accessories ['pet_supplies', 'dogs', 'collars,']\n",
      "[0.83973384 0.42054087 0.3731814 ]\n",
      "beauty_nail_care ['beauty', 'makeup', 'nails,']\n",
      "[0.4474656 0.3801255 0.6479705]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.14116849 0.4986687  0.43014672]\n",
      "supplements ['pet_supplies', 'dogs', 'health_supplies,']\n",
      "[0.20109877 0.18904969 0.40612596]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.41859624 0.6872301  0.5225135 ]\n",
      "games ['toys_games', 'games', 'tile_games,']\n",
      "[0.6286931 0.9999998 0.5387721]\n",
      "beauty_products ['health_personal_care', 'health_care', 'alternative_medicine,']\n",
      "[0.32688472 0.33715993 0.34775254]\n",
      "beauty_products ['beauty', 'bath_body', 'cleansers,']\n",
      "[0.6002429  0.45510772 0.3596702 ]\n",
      "games ['toys_games', 'games', 'board_games,']\n",
      "[0.6286931 0.9999998 0.6345357]\n",
      "health_eye_care ['health_personal_care', 'medical_supplies_equipment', 'daily_living_aids,']\n",
      "[0.6415158  0.36349043 0.47356477]\n",
      "home_kitchen ['health_personal_care', 'household_supplies', 'household_cleaning,']\n",
      "[0.27794954 0.5449165  0.6279187 ]\n",
      "pets ['pet_supplies', 'dogs', 'toys,']\n",
      "[0.6490211  0.8171104  0.45009634]\n",
      "personal_care_skincare ['beauty', 'makeup', 'eyes,']\n",
      "[0.33401957 0.36058876 0.2830767 ]\n",
      "family_kids_toys ['baby_products', 'gear', 'swings,']\n",
      "[0.54590905 0.34908116 0.25348374]\n",
      "[consumer_products_personal_care_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.49261317 0.4909653  0.6778133 ]\n",
      "outdoor_recreation ['toys_games', 'sports_outdoor_play', 'pools_water_fun,']\n",
      "[0.3156681 0.7671351 0.424809 ]\n",
      "pet_care ['pet_supplies', 'cats', 'beds_furniture,']\n",
      "[0.7132469  0.47258878 0.3461581 ]\n",
      "pets ['pet_supplies', 'cats', 'feeding_watering_supplies,']\n",
      "[0.6490211  0.76503944 0.23436277]\n",
      "[grooming_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.29940915 0.32248315 0.7987232 ]\n",
      "skincare ['beauty', 'skin_care,']\n",
      "[0.38147843 0.8370796 ]\n",
      "pregnancy_health ['baby_products', 'pregnancy_maternity', 'maternity_pillows,']\n",
      "[0.43317196 0.7491415  0.5126849 ]\n",
      "reviews ['toys_games', 'action_toy_figures', 'figures,']\n",
      "[0.20082782 0.07508254 0.18989167]\n",
      "pet_accessories ['pet_supplies', 'cats', 'feeding_watering_supplies,']\n",
      "[0.83973384 0.3773735  0.33253133]\n",
      "pets ['pet_supplies', 'cats', 'feeding_watering_supplies,']\n",
      "[0.6490211  0.76503944 0.23436277]\n",
      "household_supplies ['health_personal_care', 'household_supplies', 'paper_plastic,']\n",
      "[0.30978552 0.9999998  0.2945025 ]\n",
      "beauty_hair_care_disappointing ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.51589584 0.72910863 0.275177  ]\n",
      "family_kids_toys ['toys_games', 'baby_toddler_toys', 'activity_play_centers,']\n",
      "[0.7044607  0.76612115 0.27302712]\n",
      "toys_games ['toys_games', 'baby_toddler_toys', 'activity_play_centers,']\n",
      "[1.         0.69986665 0.40788585]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'coffee,']\n",
      "[0.4625294  0.81020916 0.5444762 ]\n",
      "food_snacks ['grocery_gourmet_food', 'candy_chocolate', 'licorice,']\n",
      "[0.52415913 0.6295924  0.30668452]\n",
      "pet_care ['pet_supplies', 'dogs', 'health_supplies,']\n",
      "[0.7132469  0.48187137 0.41307944]\n",
      "food_snacks ['grocery_gourmet_food', 'candy_chocolate', 'taffy,']\n",
      "[0.52415913 0.6295924  0.39549613]\n",
      "pet_grooming ['pet_supplies', 'dogs', 'grooming,']\n",
      "[0.58977747 0.40016785 0.7992876 ]\n",
      "outdoor_recreation ['toys_games', 'novelty_gag_toys,']\n",
      "[0.3156681  0.25754565]\n",
      "beauty_hair_care ['beauty', 'hair_care', 'conditioners,']\n",
      "[0.56852764 0.8634659  0.2424541 ]\n",
      "reviews ['toys_games', 'action_toy_figures', 'figures,']\n",
      "[0.20082782 0.07508254 0.18989167]\n",
      "educational_toys ['toys_games', 'learning_education', 'geography,']\n",
      "[0.73833376 0.63707954 0.23352793]\n",
      "pet_training_equipment ['pet_supplies', 'dogs', 'collars,']\n",
      "[0.72408587 0.34384218 0.37609577]\n",
      "toys_action_figures ['toys_games', 'baby_toddler_toys', 'rattles,']\n",
      "[0.73259896 0.60206556 0.21071547]\n",
      "pets ['pet_supplies', 'dogs', 'toys,']\n",
      "[0.6490211  0.8171104  0.45009634]\n",
      "pet_care ['health_personal_care', 'medical_supplies_equipment', 'daily_living_aids,']\n",
      "[0.4441589  0.25609353 0.38424057]\n",
      "games ['toys_games', 'games', 'board_games,']\n",
      "[0.6286931 0.9999998 0.6345357]\n",
      "beauty_hair_care ['health_personal_care', 'medical_supplies_equipment', 'daily_living_aids,']\n",
      "[0.5165858  0.21571404 0.3257866 ]\n",
      "grooming ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.36866555 0.559311   0.29628313]\n",
      "beauty_hair_care ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.5165859  0.52054894 0.59265584]\n",
      "snacks ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.08829791 0.30636495 0.46617195]\n",
      "crafting ['toys_games', 'dress_up_pretend_play', 'pretend_play,']\n",
      "[0.2471881  0.18828443 0.1424751 ]\n",
      "educational_toys ['toys_games', 'electronics_for_kids', 'electronic_toys,']\n",
      "[0.7383338 0.5733979 0.6966228]\n",
      "pet_care ['pet_supplies', 'cats', 'health_supplies,']\n",
      "[0.7132469  0.47258878 0.41307944]\n",
      "pets ['pet_supplies', 'cats', 'food,']\n",
      "[0.6490211  0.7650394  0.40150064]\n",
      "health_medical_equipment ['health_personal_care', 'medical_supplies_equipment', 'braces,']\n",
      "[0.5281792  0.87382436 0.26488477]\n",
      "recommendations ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.20413636 0.12882301 0.1987851 ]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "toys_disappointing ['baby_products', 'feeding', 'highchairs_booster_seats,']\n",
      "[0.47774225 0.20810345 0.30283758]\n",
      "beauty_product_disappointment ['beauty', 'fragrance,']\n",
      "[0.5309926  0.43974787]\n",
      "personal_care_skincare ['beauty', 'skin_care', 'eyes,']\n",
      "[0.33401957 0.84962463 0.28307664]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "pet_training_equipment ['pet_supplies', 'dogs', 'collars,']\n",
      "[0.72408587 0.34384218 0.37609577]\n",
      "products_for_children ['baby_products', 'diapering', 'disposable_diapers,']\n",
      "[0.7485176  0.21030843 0.40734142]\n",
      "toys_games ['toys_games', 'puzzles', 'pegged_puzzles,']\n",
      "[1.         0.33320636 0.45920345]\n",
      "toys_gifts ['toys_games', 'dress_up_pretend_play', 'pretend_play,']\n",
      "[0.8262298 0.2859007 0.271112 ]\n",
      "parenting_potty_training ['baby_products', 'potty_training', 'seat_covers,']\n",
      "[0.3604492  0.8577633  0.30751744]\n",
      "outdoor_recreation ['toys_games', 'sports_outdoor_play', 'gym_sets_swings,']\n",
      "[0.3156681  0.7671351  0.36911583]\n",
      "pet_accessories ['pet_supplies', 'cats', 'beds_furniture,']\n",
      "[0.83973384 0.3773735  0.3482499 ]\n",
      "food_beverages ['baby_products', 'feeding', 'solid_feeding,']\n",
      "[0.41048637 0.42780656 0.3768546 ]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "toys_building_sets ['baby_products', 'nursery', 'furniture,']\n",
      "[0.37786338 0.33037993 0.40952057]\n",
      "toys_games ['toys_games', 'games', 'board_games,']\n",
      "[1.        0.6286931 0.7078642]\n",
      "pet_training_equipment ['pet_supplies', 'dogs', 'collars,']\n",
      "[0.72408587 0.34384218 0.37609577]\n",
      "supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.14116849 0.4986687  0.8474369 ]\n",
      "skincare ['health_personal_care', 'health_care', 'foot_care,']\n",
      "[0.3292828  0.4091317  0.45324358]\n",
      "pets ['pet_supplies', 'dogs', 'toys,']\n",
      "[0.6490211  0.8171104  0.45009634]\n",
      "pets ['pet_supplies', 'cats', 'toys,']\n",
      "[0.6490211  0.7650394  0.45009634]\n",
      "beauty_hair_care_disappointing ['beauty', 'skin_care', 'hands_nails,']\n",
      "[0.51589584 0.44695127 0.27013958]\n",
      "[grooming_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.29940915 0.32248315 0.7987232 ]\n",
      "skincare ['beauty', 'skin_care', 'face,']\n",
      "[0.38147843 0.8631095  0.37366784]\n",
      "food_ingredients ['grocery_gourmet_food', 'produce', 'fresh_fruits,']\n",
      "[0.4964146  0.39958483 0.41490787]\n",
      "toys_disappointing ['baby_products', 'nursery', 'nursery_d_cor,']\n",
      "[0.47774225 0.33637375 0.33773544]\n",
      "parenting_baby_gear ['baby_products', 'bathing_skin_care', 'grooming_healthcare_kits,']\n",
      "[0.5734513  0.28466612 0.44188341]\n",
      "toys_gifts ['toys_games', 'baby_toddler_toys', 'push_pull_toys,']\n",
      "[0.8262298  0.73233944 0.59591454]\n",
      "snacks ['grocery_gourmet_food', 'candy_chocolate', 'suckers_lollipops,']\n",
      "[0.3801156  0.4380491  0.34593603]\n",
      "toys_games ['toys_games', 'dolls_accessories', 'dolls,']\n",
      "[1.         0.554077   0.46694446]\n",
      "pet_toys ['pet_supplies', 'cats', 'toys,']\n",
      "[0.7045902  0.45388165 0.7075868 ]\n",
      "food_gluten_free ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.521618  0.3427741]\n",
      "household_cleaning ['toys_games', 'dress_up_pretend_play', 'pretend_play,']\n",
      "[0.24341074 0.26207563 0.21778451]\n",
      "grooming ['health_personal_care', 'household_supplies', 'cleaning_tools,']\n",
      "[0.20014654 0.22119641 0.24712712]\n",
      "grooming ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.20014656 0.24637152 0.5898558 ]\n",
      "family_kids_toys ['toys_games', 'sports_outdoor_play', 'sandboxes_accessories,']\n",
      "[0.7044607  0.21965021 0.40238252]\n",
      "skincare ['health_personal_care', 'health_care', 'therapeutic_skin_care,']\n",
      "[0.3292828  0.4091317  0.75714016]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'coconut_water,']\n",
      "[0.4625294  0.81020916 0.49873018]\n",
      "beauty_nail_care ['beauty', 'makeup', 'nails,']\n",
      "[0.4474656 0.3801255 0.6479705]\n",
      "pets ['pet_supplies', 'cats', 'feeding_watering_supplies,']\n",
      "[0.6490211  0.76503944 0.23436277]\n",
      "household_cleaning ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.19618031 0.4296953  0.28005216]\n",
      "beauty_products ['beauty', 'hair_care', 'hair_color,']\n",
      "[0.6002429  0.5075035  0.45785445]\n",
      "food_gluten_free ['grocery_gourmet_food', 'breads_bakery', 'breads,']\n",
      "[0.521618  0.4615797 0.3719921]\n",
      "beauty_products ['beauty', 'makeup', 'face,']\n",
      "[0.6002429  0.53437495 0.3397303 ]\n",
      "pets ['pet_supplies', 'dogs', 'litter_housebreaking,']\n",
      "[0.6490211 0.8171104 0.3945772]\n",
      "toys_games ['toys_games', 'learning_education', 'geography,']\n",
      "[1.         0.31162226 0.21074848]\n",
      "health_pain_management ['health_personal_care', 'medical_supplies_equipment', 'mobility_aids_equipment,']\n",
      "[0.47723636 0.3048831  0.19960378]\n",
      "pet_accessories ['pet_supplies', 'dogs', 'health_supplies,']\n",
      "[0.83973384 0.42054087 0.4629828 ]\n",
      "parenting_potty_training ['baby_products', 'potty_training', 'potties_seats,']\n",
      "[0.3604492  0.8577633  0.51921004]\n",
      "games ['toys_games', 'games', 'board_games,']\n",
      "[0.6286931 0.9999998 0.6345357]\n",
      "family_kids_toys ['toys_games', 'puzzles', 'floor_puzzles,']\n",
      "[0.7044607 0.299311  0.3100833]\n",
      "[consumer_products_personal_care_shaving] ['beauty', 'skin_care', 'hands_nails,']\n",
      "[0.2936528  0.48492622 0.29489174]\n",
      "toys_building_sets ['toys_games', 'sports_outdoor_play', 'gym_sets_swings,']\n",
      "[0.6367507  0.19992657 0.49771103]\n",
      "educational_toys ['toys_games', 'puzzles', 'floor_puzzles,']\n",
      "[0.7383338  0.2979286  0.27142492]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "household_cleaning ['health_personal_care', 'household_supplies', 'household_cleaning,']\n",
      "[0.38114545 0.6732229  0.983103  ]\n",
      "consumer_electronics_reviews ['health_personal_care', 'health_care', 'pain_relievers,']\n",
      "[0.20636317 0.21298315 0.15578249]\n",
      "pets ['pet_supplies', 'dogs', 'beds_furniture,']\n",
      "[0.6490211  0.8171104  0.23375496]\n",
      "breastfeeding ['baby_products', 'feeding', 'breastfeeding,']\n",
      "[0.4365404 0.5234327 0.9406246]\n",
      "food_beverages ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.24092104 0.4721323  0.6921588 ]\n",
      "household_cleaning ['health_personal_care', 'household_supplies', 'cleaning_tools,']\n",
      "[0.38114545 0.6732229  0.6113004 ]\n",
      "pets ['pet_supplies', 'dogs', 'houses,']\n",
      "[0.6490211  0.8171104  0.40030167]\n",
      "skincare ['health_personal_care', 'health_care', 'first_aid,']\n",
      "[0.3292828  0.4091317  0.29103762]\n",
      "consumer_electronics_reviews ['health_personal_care', 'household_supplies', 'household_batteries,']\n",
      "[0.20636317 0.3028621  0.39910734]\n",
      "health_foot_care ['health_personal_care', 'health_care', 'foot_care,']\n",
      "[0.60599667 0.7146396  0.8187767 ]\n",
      "outdoor_recreation ['pet_supplies', 'dogs', 'houses,']\n",
      "[0.20449409 0.19874285 0.28840154]\n",
      "parenting_baby_care ['baby_products', 'bathing_skin_care', 'bathing_tubs_seats,']\n",
      "[0.52180386 0.42000562 0.30905342]\n",
      "oral_health ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.49894044 0.3455468  0.8151215 ]\n",
      "grooming ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.36866555 0.559311   0.29628313]\n",
      "games ['toys_games', 'electronics_for_kids', 'electronic_toys,']\n",
      "[0.6286931  0.24087536 0.28009713]\n",
      "pets ['pet_supplies', 'dogs', 'doors,']\n",
      "[0.6490211  0.8171104  0.31101388]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "[consumer_products_personal_care_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.49261317 0.4909653  0.6778133 ]\n",
      "reviews ['health_personal_care', 'household_supplies', 'household_cleaning,']\n",
      "[0.17237277 0.14675328 0.13587515]\n",
      "food_gluten_free ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.521618  0.3427741]\n",
      "outdoor_recreation ['toys_games', 'arts_crafts', 'drawing_painting_supplies,']\n",
      "[0.3156681  0.29499006 0.198656  ]\n",
      "parenting_safety ['baby_products', 'feeding', 'highchairs_booster_seats,']\n",
      "[0.35622025 0.24135002 0.2800887 ]\n",
      "family_kids_toys ['toys_games', 'dress_up_pretend_play', 'pretend_play,']\n",
      "[0.7044606  0.30757248 0.30223352]\n",
      "pet_accessories ['pet_supplies', 'cats', 'litter_housebreaking,']\n",
      "[0.83973384 0.3773735  0.39248812]\n",
      "toys_crafts ['toys_games', 'learning_education', 'reading_writing,']\n",
      "[0.7748219  0.28928688 0.21110152]\n",
      "grooming ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.20014656 0.24637152 0.5898558 ]\n",
      "family_kids_toys ['baby_products', 'health_baby_care', 'teethers,']\n",
      "[0.5459091 0.3441363 0.3195607]\n",
      "electronics ['health_personal_care', 'health_care', 'alternative_medicine,']\n",
      "[0.09173577 0.14502104 0.16540018]\n",
      "toys_games ['toys_games', 'building_toys', 'building_sets,']\n",
      "[1.         0.7156065  0.22913986]\n",
      "pets ['pet_supplies', 'dogs', 'houses,']\n",
      "[0.6490211  0.8171104  0.40030167]\n",
      "food_beverages ['grocery_gourmet_food', 'breakfast_foods', 'cereals,']\n",
      "[0.4625294  0.5707741  0.37886897]\n",
      "skincare ['health_personal_care', 'nutrition_wellness,']\n",
      "[0.32928285 0.28837475]\n",
      "educational_toys ['toys_games', 'arts_crafts,']\n",
      "[0.7383338 0.5048711]\n",
      "product_issues ['baby_products', 'diapering', 'disposable_diapers,']\n",
      "[0.5628956  0.08993618 0.22555825]\n",
      "pet_accessories ['pet_supplies', 'cats', 'litter_housebreaking,']\n",
      "[0.83973384 0.3773735  0.39248812]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "toys_building_sets ['toys_games', 'building_toys', 'building_sets,']\n",
      "[0.6367507 0.8604247 0.709971 ]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'tea,']\n",
      "[0.4625294  0.81020916 0.45982718]\n",
      "beauty_products ['beauty', 'bath_body', 'cleansers,']\n",
      "[0.6002429  0.45510772 0.3596702 ]\n",
      "parenting_supplies ['baby_products', 'gear', 'backpacks_carriers,']\n",
      "[0.47858176 0.2282654  0.38827482]\n",
      "skincare ['beauty', 'skin_care', 'face,']\n",
      "[0.38147843 0.8631095  0.37366784]\n",
      "parenting_baby_gear ['baby_products', 'gear', 'baby_gyms_playmats,']\n",
      "[0.5734514 0.6176513 0.5083789]\n",
      "pets ['pet_supplies', 'dogs', 'grooming,']\n",
      "[0.6490211  0.8171104  0.36175692]\n",
      "beauty_nail_care ['beauty', 'tools_accessories', 'nail_tools,']\n",
      "[0.4474656  0.25352088 0.6556937 ]\n",
      "toys_games ['toys_games', 'electronics_for_kids,']\n",
      "[1.         0.51280236]\n",
      "pet_training_equipment ['pet_supplies', 'dogs', 'collars,']\n",
      "[0.72408587 0.34384218 0.37609577]\n",
      "personal_care_skincare ['beauty', 'skin_care', 'body,']\n",
      "[0.33401957 0.84962463 0.29601774]\n",
      "toys_games ['toys_games', 'sports_outdoor_play', 'blasters_foam_play,']\n",
      "[1.         0.35104385 0.4614494 ]\n",
      "health_medical_equipment ['health_personal_care', 'health_care,']\n",
      "[0.5281793  0.59878045]\n",
      "beauty_products ['beauty', 'tools_accessories', 'makeup_brushes_tools,']\n",
      "[0.6002429  0.36524087 0.5409126 ]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "toys_games ['toys_games', 'sports_outdoor_play', 'blasters_foam_play,']\n",
      "[1.         0.35104385 0.4614494 ]\n",
      "personal_care_deodorants ['baby_products', 'diapering', 'disposable_diapers,']\n",
      "[0.4017194  0.25253105 0.46312818]\n",
      "family_kids_toys ['toys_games', 'baby_toddler_toys', 'music_sound,']\n",
      "[0.7044607  0.76612115 0.30577946]\n",
      "parenting ['baby_products', 'gear', 'swings,']\n",
      "[0.3656216  0.23243219 0.27410552]\n",
      "supplements ['pet_supplies', 'dogs', 'food,']\n",
      "[0.20109877 0.18904963 0.2978342 ]\n",
      "recipes ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.43134737 0.33343786]\n",
      "family_kids_toys ['toys_games', 'baby_toddler_toys,']\n",
      "[0.7044606  0.76504594]\n",
      "personal_care_deodorants ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.5563458  0.27579156 0.33973053]\n",
      "products_for_children ['baby_products', 'diapering', 'disposable_diapers,']\n",
      "[0.7485176  0.21030843 0.40734142]\n",
      "reviews ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.33836672 0.2792725  0.03290277]\n",
      "recommendations ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.20413636 0.12882301 0.1987851 ]\n",
      "food_beverages ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.24092104 0.4721323  0.3012657 ]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'coffee,']\n",
      "[0.4625294  0.81020916 0.5444762 ]\n",
      "product_issues ['toys_games', 'arts_crafts', 'drawing_painting_supplies,']\n",
      "[0.34957737 0.26056728 0.3483912 ]\n",
      "pregnancy_health ['baby_products', 'pregnancy_maternity', 'maternity_pillows,']\n",
      "[0.43317196 0.7491415  0.5126849 ]\n",
      "fragrances ['beauty', 'fragrance', 'men_s,']\n",
      "[0.41336948 0.94172305 0.27105018]\n",
      "beauty_nail_care ['beauty', 'makeup', 'nails,']\n",
      "[0.4474656 0.3801255 0.6479705]\n",
      "fragrances ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.41336948 0.31265172 0.1499096 ]\n",
      "skincare ['beauty', 'skin_care', 'face,']\n",
      "[0.38147843 0.8631095  0.37366784]\n",
      "beauty_products ['beauty', 'hair_care,']\n",
      "[0.600243  0.5044177]\n",
      "perfume ['beauty', 'fragrance', 'women_s,']\n",
      "[0.4922841  0.82422227 0.23284349]\n",
      "games ['toys_games', 'games', 'board_games,']\n",
      "[0.6286931 0.9999998 0.6345357]\n",
      "food_ingredients ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.19713616 0.5151147  0.4563066 ]\n",
      "games ['toys_games', 'games', 'board_games,']\n",
      "[0.6286931 0.9999998 0.6345357]\n",
      "gift_ideas ['toys_games', 'novelty_gag_toys', 'gag_toys_practical_jokes,']\n",
      "[0.50509846 0.45093876 0.35171247]\n",
      "toys_building_sets ['toys_games', 'hobbies', 'trains_accessories,']\n",
      "[0.6367507  0.27306443 0.48102075]\n",
      "beauty_product_disappointment ['beauty', 'tools_accessories', 'mirrors,']\n",
      "[0.53099257 0.28678924 0.23571444]\n",
      "parenting_toys ['toys_games', 'learning_education', 'science,']\n",
      "[0.71435636 0.36347982 0.28807232]\n",
      "consumer_electronics ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.16537991 0.21780223 0.0448065 ]\n",
      "parenting_baby_care ['baby_products', 'bathing_skin_care', 'bathing_tubs_seats,']\n",
      "[0.52180386 0.42000562 0.30905342]\n",
      "health_sinus_relief ['health_personal_care', 'health_care', 'allergy,']\n",
      "[0.4245899  0.46367592 0.36589295]\n",
      "beauty_product_disappointment ['beauty', 'tools_accessories', 'mirrors,']\n",
      "[0.53099257 0.28678924 0.23571444]\n",
      "parenting_baby_care ['baby_products', 'feeding', 'breastfeeding,']\n",
      "[0.5218039  0.34358796 0.5147222 ]\n",
      "toys_games ['toys_games', 'baby_toddler_toys', 'bath_toys,']\n",
      "[1.         0.69986665 0.6732067 ]\n",
      "electronics ['toys_games', 'learning_education', 'science,']\n",
      "[0.31605187 0.2494428  0.37442037]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "product_review ['grocery_gourmet_food', 'fresh_flowers_live_indoor_plants', 'live_indoor_plants,']\n",
      "[0.27348188 0.2129848  0.20986581]\n",
      "health_supplements ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.41859624 0.2736045  0.293518  ]\n",
      "skincare ['health_personal_care', 'health_care', 'pain_relievers,']\n",
      "[0.3292828 0.4091317 0.2524939]\n",
      "grooming ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.20014656 0.24637152 0.5898558 ]\n",
      "pet_care_value ['health_personal_care', 'household_supplies', 'household_cleaning,']\n",
      "[0.31204075 0.24858978 0.2273827 ]\n",
      "consumer_complaints ['toys_games', 'action_toy_figures', 'playsets,']\n",
      "[0.13819432 0.13179915 0.12911838]\n",
      "toys_building_sets ['toys_games', 'building_toys', 'building_sets,']\n",
      "[0.6367507 0.8604247 0.709971 ]\n",
      "toys_games ['toys_games', 'novelty_gag_toys', 'wind_up_toys,']\n",
      "[1.         0.64936537 0.6799926 ]\n",
      "plumbing_maintenance ['pet_supplies', 'fish_aquatic_pets', 'pumps_filters,']\n",
      "[0.2509028  0.32749218 0.33365655]\n",
      "games ['toys_games', 'grown_up_toys,']\n",
      "[0.6286931 0.3027699]\n",
      "health_supplements ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.41859624 0.6872301  0.8331268 ]\n",
      "reviews ['toys_games', 'hobbies', 'model_building_kits_tools,']\n",
      "[0.20082782 0.2031035  0.03566952]\n",
      "pets ['pet_supplies', 'cats', 'collars,']\n",
      "[0.6490211 0.7650394 0.5556047]\n",
      "games ['toys_games', 'games', 'card_games,']\n",
      "[0.6286931  0.9999998  0.63236713]\n",
      "pets ['pet_supplies', 'dogs', 'carriers_travel_products,']\n",
      "[0.6490211  0.8171104  0.15121609]\n",
      "food_beverages ['health_personal_care', 'nutrition_wellness', 'vitamins_supplements,']\n",
      "[0.24092104 0.4721323  0.3012657 ]\n",
      "toys_gifts ['toys_games', 'electronics_for_kids', 'electronic_toys,']\n",
      "[0.8262298  0.51828855 0.74232894]\n",
      "health_medical_equipment ['health_personal_care', 'medical_supplies_equipment', 'health_monitors,']\n",
      "[0.5281792  0.87382436 0.53664243]\n",
      "products_for_children ['baby_products', 'nursery', 'bedding,']\n",
      "[0.7485176  0.33951893 0.1787349 ]\n",
      "snacks ['health_personal_care', 'nutrition_wellness', 'nutrition_bars_drinks,']\n",
      "[0.08829791 0.30636495 0.46617195]\n",
      "beauty_products ['health_personal_care', 'household_supplies', 'cleaning_tools,']\n",
      "[0.32688472 0.3570887  0.28690773]\n",
      "pet_accessories ['pet_supplies', 'cats', 'litter_housebreaking,']\n",
      "[0.83973384 0.3773735  0.39248812]\n",
      "beauty_products ['health_personal_care', 'household_supplies', 'household_cleaning,']\n",
      "[0.32688472 0.3570887  0.34081718]\n",
      "oral_care ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.5127526 0.5296027 0.8284817]\n",
      "beauty_products ['beauty', 'makeup', 'nails,']\n",
      "[0.6002429  0.53437495 0.24555218]\n",
      "beauty_products ['beauty', 'bath_body', 'cleansers,']\n",
      "[0.6002429  0.45510772 0.3596702 ]\n",
      "oral_health ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.49894044 0.3455468  0.8151215 ]\n",
      "reviews ['beauty', 'tools_accessories', 'mirrors,']\n",
      "[0.33836675 0.09811491 0.26052535]\n",
      "grooming ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.20014656 0.24637152 0.5898558 ]\n",
      "pets ['pet_supplies', 'dogs', 'houses,']\n",
      "[0.6490211  0.8171104  0.40030167]\n",
      "pet_accessories ['pet_supplies', 'dogs', 'toys,']\n",
      "[0.83973384 0.42054087 0.44513172]\n",
      "beauty_products ['health_personal_care', 'personal_care', 'lip_care_products,']\n",
      "[0.32688472 0.35566658 0.69598824]\n",
      "parenting_baby_care ['baby_products', 'nursery', 'furniture,']\n",
      "[0.52180386 0.50921285 0.28881904]\n",
      "[consumer_products_personal_care_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.49261317 0.4909653  0.6778133 ]\n",
      "breastfeeding ['baby_products', 'feeding', 'breastfeeding,']\n",
      "[0.4365404 0.5234327 0.9406246]\n",
      "beauty_products ['beauty', 'hair_care', 'shampoos,']\n",
      "[0.6002429 0.5075035 0.3660172]\n",
      "outdoor_recreation ['pet_supplies', 'birds', 'feeding_watering_supplies,']\n",
      "[0.20449403 0.2434384  0.21683398]\n",
      "movies_comedy_fantasy ['grocery_gourmet_food', 'beverages', 'juices,']\n",
      "[0.3484642  0.18811533 0.19605497]\n",
      "fitness_equipment ['health_personal_care', 'medical_supplies_equipment', 'braces,']\n",
      "[0.31356478 0.65157646 0.19595517]\n",
      "pets ['baby_products', 'safety', 'gates_doorways,']\n",
      "[0.25617152 0.26567215 0.20739426]\n",
      "travel_accessories ['baby_products', 'strollers', 'accessories,']\n",
      "[0.35929346 0.35034066 0.63204473]\n",
      "technology_gadgets ['health_personal_care', 'personal_care', 'eye_care,']\n",
      "[0.18943338 0.17734432 0.21424901]\n",
      "food_ingredients ['grocery_gourmet_food', 'pantry_staples,']\n",
      "[0.4964146  0.41558084]\n",
      "fragrances ['beauty', 'fragrance', 'women_s,']\n",
      "[0.41336948 0.94172305 0.30460793]\n",
      "pets ['pet_supplies', 'dogs', 'treats,']\n",
      "[0.6490211 0.8171104 0.5202011]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'tea,']\n",
      "[0.4625294  0.81020916 0.45982718]\n",
      "consumer_electronics_reviews ['baby_products', 'safety', 'monitors,']\n",
      "[0.3555687  0.20487587 0.3153688 ]\n",
      "toys_games ['toys_games', 'baby_toddler_toys', 'car_seat_stroller_toys,']\n",
      "[1.         0.69986665 0.61239946]\n",
      "health_medical_supplies ['health_personal_care', 'medical_supplies_equipment', 'mobility_aids_equipment,']\n",
      "[0.5720322 0.8503931 0.4508072]\n",
      "oral_care ['health_personal_care', 'personal_care', 'oral_hygiene,']\n",
      "[0.5127526 0.5296027 0.8284817]\n",
      "food_beverages ['grocery_gourmet_food', 'beverages', 'coffee,']\n",
      "[0.4625294  0.81020916 0.5444762 ]\n",
      "products_for_children ['toys_games', 'dolls_accessories', 'dolls,']\n",
      "[0.4852156  0.44024724 0.28236043]\n",
      "toys_games ['toys_games', 'novelty_gag_toys,']\n",
      "[1.         0.64788765]\n",
      "parenting_supplies ['baby_products', 'diapering', 'diaper_pails_refills,']\n",
      "[0.47858173 0.2682877  0.46951944]\n",
      "car_safety ['baby_products', 'car_seats_accessories', 'car_seats,']\n",
      "[0.2951058  0.51309115 0.6094617 ]\n",
      "shopping_electronics ['health_personal_care', 'sexual_wellness', 'adult_toys_games,']\n",
      "[0.16539407 0.22014287 0.3493153 ]\n",
      "health_medical_supplies ['baby_products', 'diapering', 'diaper_pails_refills,']\n",
      "[0.3524618  0.23488322 0.4284199 ]\n",
      "grooming ['beauty', 'hair_care', 'styling_tools,']\n",
      "[0.36866555 0.559311   0.29628313]\n",
      "recommendations ['toys_games', 'electronics_for_kids', 'systems_accessories,']\n",
      "[0.29542357 0.24434698 0.12480658]\n",
      "toys_gifts ['toys_games', 'stuffed_animals_plush', 'animals_figures,']\n",
      "[0.8262298  0.6696056  0.42592928]\n",
      "[consumer_products_personal_care_shaving] ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.49261317 0.4909653  0.6778133 ]\n",
      "pet_accessories ['pet_supplies', 'dogs', 'health_supplies,']\n",
      "[0.83973384 0.42054087 0.4629828 ]\n",
      "toys_games ['toys_games', 'sports_outdoor_play', 'sports,']\n",
      "[1.         0.35104385 0.38475865]\n",
      "grooming ['health_personal_care', 'personal_care', 'shaving_hair_removal,']\n",
      "[0.20014656 0.24637152 0.5898558 ]\n",
      "toys_dolls ['toys_games', 'stuffed_animals_plush', 'animals_figures,']\n",
      "[0.80830014 0.6805414  0.51506215]\n",
      "pet_accessories ['pet_supplies', 'dogs', 'collars,']\n",
      "[0.83973384 0.42054087 0.3731814 ]\n",
      "parenting_baby_carriers ['baby_products', 'diapering,']\n",
      "[0.49413675 0.3569977 ]\n",
      "furniture_assembly ['health_personal_care', 'medical_supplies_equipment', 'mobility_aids_equipment,']\n",
      "[0.11086641 0.30526605 0.27236947]\n",
      "health_eye_care ['health_personal_care', 'personal_care', 'eye_care,']\n",
      "[0.6415158  0.52238286 0.7960758 ]\n"
     ]
    }
   ],
   "source": [
    "correct = 0\n",
    "for index in range(len(predict_output)):\n",
    "    query_embedding = model.encode(predict_output[index])\n",
    "    print(predict_output[index], test_set[index])\n",
    "    passage_embedding = model.encode(test_set[index])\n",
    "    sim_scores = util.dot_score(query_embedding, passage_embedding)[0].numpy()\n",
    "    print(sim_scores)\n",
    "    rank_list = np.argsort(sim_scores)[-1]\n",
    "    if sim_scores[rank_list] >= 0.60:\n",
    "        correct +=1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0.3822975517890772"
      ]
     },
     "execution_count": 54,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "203/531"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "file2 = open('../datasets/Reuters-21578/test_raw_texts.txt', 'r')\n",
    "docs = file2.readlines()[:1000]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[['Trade Surplus',\n",
       "  'Oil Trade',\n",
       "  'Trade Legislation',\n",
       "  'Soybean Exports',\n",
       "  'Trade Deficit',\n",
       "  'Exports',\n",
       "  'Trade Policy',\n",
       "  'International Trade'],\n",
       " ['Sugar Production and Exports',\n",
       "  'Beef Exports',\n",
       "  'Inventory',\n",
       "  'Commodity Prices',\n",
       "  'Commodities',\n",
       "  'Wheat Harvest',\n",
       "  'Agriculture',\n",
       "  'Agricultural Products'],\n",
       " ['Soybean Exports',\n",
       "  'Oil and Gas',\n",
       "  'Monetary Policy',\n",
       "  'Oil Prices',\n",
       "  'Economic Priorities',\n",
       "  'Commodity Prices',\n",
       "  'Economic Outlook',\n",
       "  'Economic Forecast'],\n",
       " ['Sales Growth',\n",
       "  'Trade Surplus',\n",
       "  'International Trade',\n",
       "  'Beef Exports',\n",
       "  'Sugar Production and Exports',\n",
       "  'Exports',\n",
       "  'Trade Deficit',\n",
       "  'Soybean Exports'],\n",
       " ['Sugar Production and Exports',\n",
       "  'International Trade',\n",
       "  'Soybean Exports',\n",
       "  'Exports',\n",
       "  'Oil Trade',\n",
       "  'Commodity Prices',\n",
       "  \"Venezuela's Oil Exports and Refinery Investments\",\n",
       "  'Oil Prices'],\n",
       " ['Shipping',\n",
       "  'International Trade',\n",
       "  'Discontinued Operations',\n",
       "  'Trade Policy',\n",
       "  'Labor Disputes',\n",
       "  'Trade Legislation',\n",
       "  'Ferry Disaster',\n",
       "  'Shipbuilding'],\n",
       " ['Soybean Exports',\n",
       "  'International Trade',\n",
       "  \"Venezuela's Oil Exports and Refinery Investments\",\n",
       "  'Coffee',\n",
       "  'Oil Trade',\n",
       "  'Commodities',\n",
       "  'Commodity Prices',\n",
       "  'Coffee Prices'],\n",
       " ['International Trade',\n",
       "  'Shipping',\n",
       "  'Sugar Production and Exports',\n",
       "  'Agricultural Products',\n",
       "  'Trade Legislation',\n",
       "  'Commodities',\n",
       "  'Commodity Prices',\n",
       "  'Wheat Harvest'],\n",
       " ['Trade Surplus',\n",
       "  'Oil Trade',\n",
       "  'Wheat Harvest',\n",
       "  'Beef Exports',\n",
       "  'Metal Trading',\n",
       "  'Commodities',\n",
       "  'Commodity Prices',\n",
       "  'Mining'],\n",
       " ['Debt',\n",
       "  'Money Market Deficit Forecast',\n",
       "  'Financial Regulatory Reform',\n",
       "  'Finance',\n",
       "  'Restructuring',\n",
       "  'Financial Performance',\n",
       "  'Acquisitions',\n",
       "  'Takeovers']]"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "top_labels = []\n",
    "for doc in docs[:10]:\n",
    "    query_embedding = model.encode(doc)\n",
    "    passage_embedding = model.encode(label_space)\n",
    "    sim_scores = util.dot_score(query_embedding, passage_embedding)[0].numpy()\n",
    "    rank_list = np.argsort(sim_scores)[-8:]\n",
    "    exp_label = []\n",
    "    for index in rank_list:\n",
    "        exp_label.append(label_space[index])\n",
    "    top_labels.append(exp_label)\n",
    "top_labels"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Multi-Label",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
